Bug #62049 [NEW]: A specific regex/input combo crashes PHP
From:
Operating system: Windows
PHP version: 5.4.3
Package: PCRE related
Bug Type: Bug
Bug description:A specific regex/input combo crashes PHP
Description:
------------
Test script crashes on web server (Apache 2.2.21) only with "empty
response"
(324). Suspected to be a limit/overflow problem since it works if
"errorerror" is
replaced with "error".
Test script:
---------------
<?php
echo preg_match( '/^<a(.)+class="(.)?actor-link(.)?"(.)+>Super
User<\/a>/',
'<a class="actor-link"
href="/errorerror.lv/lv/jomsocial/42-super-user/profile">Super User</a>
added 2 new photos in <a
href="/errorerror.lv/lv/jomsocial/42-super-user/photos/album?albumid=1">crap</a>
album' );
echo "\nFINISHED!";
?>
Expected result:
----------------
"1\nFINISHED"
Actual result:
--------------
HTTP error 324: empty response. Probably PHP crash. Apache didn't crash.
--
Edit bug report at https://bugs.php.net/bug.php?id=62049&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62049&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62049&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62049&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62049&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62049&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62049&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62049&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62049&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62049&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62049&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62049&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62049&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62049&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62049&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62049&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62049&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62049&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62049&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62049&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62049&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62049&r=mysqlcfg
Thread (6 messages)
- arvids dot kokins at di dot lv