php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52358 Improve error_log to be more helpful
Submitted: 2010-07-16 11:00 UTC Modified: 2021-07-14 14:40 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: andreas dot streichardt at globalpark dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: 5.3.2 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andreas dot streichardt at globalpark dot com
New email:
PHP Version: OS:

 

 [2010-07-16 11:00 UTC] andreas dot streichardt at globalpark dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-14 14:26 UTC] olafvdspek at gmail dot com
A stack trace, like no uncaught exceptions, would certainly be nice.
 [2021-07-14 14:40 UTC] cmb@php.net
The problem here is that doing more processing after memory_limit
was hit is likely going to require more memory.  This is why this
condition doesn't throw an Exception, but is a fatal error.
 [2022-11-09 13:26 UTC] erpae dot solution dot com at gmail dot com
ERPAE is the best ERP Software in UAE and gives you full control all over the business operation. It manage your Business ERP With Project, HRM, CRM.
erpae.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:29 2024 UTC