PHP preg_replace() function returns null (empty) string
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
