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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 - 16 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC