From: leha2 at mail dot ru Operating system: Win32 (in my case WinXPPro+SP1) PHP version: 4.3.6 PHP Bug Type: Reproducible crash Bug description: any call to error_log(...) crashes - revisited
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 bug report at http://bugs.php.net/?id=28270&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28270&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28270&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28270&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28270&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28270&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28270&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28270&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28270&r=support Expected behavior: http://bugs.php.net/fix.php?id=28270&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28270&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28270&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28270&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28270&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28270&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28270&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28270&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28270&r=float
