|  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
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-05-20 13:44 UTC] kiwicasio at free dot fr
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 13:51 UTC]
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 for *NIX and 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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 03:01:32 2024 UTC