#28270 [Opn->Bgs]: any call to error_log(...) crashes - revisited
ID: 28270
Updated by: derick@php.net
Reported By: leha2 at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Win32 (in my case WinXPPro+SP1)
PHP Version: 4.3.6
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Reopen the old report, NEVER refile an existing bug please.
Previous Comments:
------------------------------------------------------------------------
[2004-05-04 07:30:22] leha2 at mail dot ru
Description:
------------
This report is just a reminder about "Bug #16787 any call to
error_log(...) crashes", that was posted to bugtrace two years ago.
I've added a comment there with description of troubles I've encounter
after migrating from PHP v.4.1.0 to 4.3.5, and then to 4.3.6.
Quick URL for viewing that post is:
http://bugs.php.net/bug.php?id=16787
Thanks for help in advance,
LeXa2
Reproduce code:
---------------
Here is a fragment of modified FastTemplate class, where the trouble
was first encountered:
function show_unknowns ($Line)
{
$unknown = array();
if (ereg("({[A-Z0-9_]+})",$Line,$unknown))
{
$UnkVar = $unknown[0];
if(!(empty($UnkVar)))
{
this is the trouble line =====>
@error_log("[FastTemplate] Warning: no value found for variable:
$UnkVar ",0);
}
}
} // end show_unknowns()
Expected result:
----------------
just to log error as usual
Actual result:
--------------
PHP stalls and I have to kill it's process via Task Manager. After that
I got 500 Internal Server Error (not surprising, really ;)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28270&edit=1
Thread (3 messages)