php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37536 preg_match crash Apache
Submitted: 2006-05-20 13:44 UTC Modified: 2006-05-28 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: kiwicasio at free dot fr Assigned:
Status: No Feedback Package: PCRE related
PHP Version: 5.1.4 OS: Windows 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kiwicasio at free dot fr
New email:
PHP Version: OS:

 

 [2006-05-20 13:44 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 13:51 UTC] tony2001@php.net
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.


 [2006-05-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC