Bug #72796 [NEW]: preg_replace crash apache (Segm.fault(11) on Linux, 3221225725 on Windows)

From: Date: Tue, 09 Aug 2016 14:03:16 +0000
Subject: Bug #72796 [NEW]: preg_replace crash apache (Segm.fault(11) on Linux, 3221225725 on Windows)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203117@lists.php.net to get a copy of this message
From: vlczech at vlczech dot cz Operating system: Windows / Linux PHP version: 5.6.24 Package: *Regular Expressions Bug Type: Bug Bug description:preg_replace crash apache (Segm.fault(11) on Linux, 3221225725 on Windows) Description: ------------ preg_replace("#('(\\\\.|[^'\\\\])*')#sU", "$1", $content); or preg_replace('#(\'(\\\\.|[^\'\\\\])*\')#sU', '$1', $content); where $content is content of jquery.min.js of version 1.11.0 (https://code.jquery.com/jquery-1.11.0.min.js), which was loaded to $content by function file_get_contents. Linux with PHP 5.4.16: [Tue Aug 09 14:41:26.597648 2016] [core:notice] [pid 1409] AH00052: child pid 13046 exit signal Segmentation fault (11) Windows 10 with PHP 5.6.12: Parent: child process 18044 exited with status 3221225725 -- Restarting. -- Edit bug report at https://bugs.php.net/bug.php?id=72796&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72796&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72796&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72796&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72796&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72796&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72796&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72796&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72796&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72796&r=support Expected behavior: https://bugs.php.net/fix.php?id=72796&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72796&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72796&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72796&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72796&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72796&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72796&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72796&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72796&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72796&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72796&r=mysqlcfg

« previous php.bugs (#203117) next »