Bug #62049 [Com]: A specific regex/input combo crashes PHP

From: Date: Wed, 16 May 2012 19:58:31 +0000
Subject: Bug #62049 [Com]: A specific regex/input combo crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-170514@lists.php.net to get a copy of this message
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


Thread (6 messages)

« previous php.bugs (#170514) next »