Edit report at https://bugs.php.net/bug.php?id=62049&edit=1

 ID:                 62049
 Comment by:         nulle at gmx dot com
 Reported by:        arvids dot kokins at di dot lv
 Summary:            A specific regex/input combo crashes PHP
 Status:             Open
 Type:               Bug
 Package:            PCRE related
 Operating System:   Windows
 PHP Version:        5.4.3
 Block user comment: N
 Private report:     N

 New Comment:

Apache 2.2.9
PHP 5.3.1
Windows
Everything works fine.


Previous Comments:
------------------------------------------------------------------------
[2012-05-16 15:54:06] arvids dot kokins at di dot lv

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 this bug report at https://bugs.php.net/bug.php?id=62049&edit=1

Reply via email to