From: Operating system: PHP version: 5.3.2 Package: Scripting Engine problem Bug Type: Feature/Change Request Bug description:Improve error_log to be more helpful
Description: ------------ The error_log isn't really helpful in many cases when analyzing it. We have a very large application with memory_limits enabled and see memory_limit problems in some cases. This might be intended (misuse of the software, driving it at its limits) or an indicator of a bug. However i can't see wether it is case a) or b): PHP Fatal error: Allowed memory size of XXX bytes exhausted (tried to allocate XX bytes) in (some random file) on line XX "some random file" might give me a hint what the user was doing but in many cases there are framework/infrastructure files involved in this is not at all helpful. What would be helpful would be a stack trace or the request variables involved in the call (which might get huge on the downside). Expected result: ---------------- PHPs error logs should be helpful in most cases. Actual result: -------------- Hard fatal errors in the error_log are not helpful at all. -- Edit bug report at http://bugs.php.net/bug.php?id=52358&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52358&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52358&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52358&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52358&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52358&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52358&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52358&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52358&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52358&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52358&r=support Expected behavior: http://bugs.php.net/fix.php?id=52358&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52358&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52358&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52358&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52358&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52358&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52358&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52358&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52358&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52358&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52358&r=mysqlcfg