#37536 [Opn->Fbk]: preg_match crash Apache

From: Date: Sat, 20 May 2006 13:51:00 +0000
Subject: #37536 [Opn->Fbk]: preg_match crash Apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97404@lists.php.net to get a copy of this message
 ID:               37536
 Updated by:       tony2001@php.net
 Reported By:      kiwicasio at free dot fr
-Status:           Open
+Status:           Feedback
 Bug Type:         PCRE related
 Operating System: Windows 2003
 PHP Version:      5.1.4
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-05-20 13:44:20] kiwicasio at free dot fr

Description:
------------
The source code bellow crash Apache like that :

[Sat May 20 15:22:38 2006] [notice] Parent: child process exited with
status 128 -- Restarting.
[Sat May 20 15:22:38 2006] [notice] Apache/2.0.55 configured --
resuming normal operations


but with the EREG equivalent, not at all, it works fine...

Reproduce code:
---------------
preg_match('<SHOUTCASTSERVER>(.|[[:cntrl:]])+</SHOUTCASTSERVER>',
$page, $tab);



but this code works :

ereg('<SHOUTCASTSERVER>(.|[[:cntrl:]])+</SHOUTCASTSERVER>', $page,
$tab);

Expected result:
----------------
a good result ;)

Actual result:
--------------
[Sat May 20 15:22:38 2006] [notice] Parent: child process exited with
status 128 -- Restarting.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37536&edit=1


Thread (2 messages)

« previous php.bugs (#97404) next »