ID: 50551
Comment by: r dot badding at gmail dot com
Reported By: r dot badding at gmail dot com
Status: Feedback
Bug Type: mbstring related
Operating System: Windows XP
PHP Version: 5.2.12
New Comment:
By crash, I mean a dialog box like this:
---------------------------
Visual Studio Just-In-Time Debugger
---------------------------
An unhandled win32 exception occurred in Apache.exe [4804]. Just-In-
Time
debugging this exception failed with the following error: No installed
debugger has Just-In-Time debugging enabled. In Visual Studio, Just-
In-
Time debugging can be enabled from Tools/Options/Debugging/Just-In-
Time.
Check the documentation index for 'Just-in-time debugging, errors' for
more information.
---------------------------
OK
---------------------------
When I have eAccelerator enabled, instead of the dialog box I get
these
into the Apache's error.log:
EACCELERATOR: PHP crashed on opline 7 of mb_ereg()
Sure, the error might be in somewhere else than in php, maybe in
Apache,
or the api dll or anywhere...
Previous Comments:
------------------------------------------------------------------------
[2009-12-22 09:05:53] jani@php.net
And regarding the password, you can find the password reminder link on
the "Edit Submission" tab..
------------------------------------------------------------------------
[2009-12-22 09:05:06] jani@php.net
Please define "crash" ? Aren't you just running out of stack or
memory..? FYI: There is no crash on *nix..
------------------------------------------------------------------------
[2009-12-22 00:57:43] r dot badding at gmail dot com
Also I used these
Apache/2.0.63 (Win32)
Server API Apache 2.0 Handler
(cannot edit this bug submission, "incorrect password")
------------------------------------------------------------------------
[2009-12-22 00:45:42] r dot badding at gmail dot com
I used a "clean" install, thread safe package. only mbstring extension
enabled, "recommended" ini file.
------------------------------------------------------------------------
[2009-12-22 00:37:19] r dot badding at gmail dot com
Description:
------------
When I make two request to the attached php file, in close proximity
(so
that the requests run at the same time), PHP crashes every time.
If I modify the php file so that there are two mb_ereg calls, instead
of
one mb_ereg + one mb_eregi, I seem to get no crashes.
Reproduce code:
---------------
<?
for ($i = 0; $i < 5000000; $i++)
{
mb_ereg("searching", "some text some text");
mb_eregi("searching", "some text some text");
}
?>
Expected result:
----------------
No crashes.
Actual result:
--------------
Crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50551&edit=1