PHP preg_replace() function returns null (empty) string

Solution Verified - Updated -

Issue

  • We have PHP scripts that call preg_replace() and used to work fine in RHEL5 with php-5.1
    With newer versions of php-5.3 and above it works fine until the input gets too big -- then we just nothing back
    Is this a bug?

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content