php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61698 Memory exhausted - unable to investigate
Submitted: 2012-04-12 03:34 UTC Modified: 2012-04-12 03:46 UTC
From: mick at deafzone dot ch Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.10 OS: Linux
Private report: No CVE-ID: None
 [2012-04-12 03:34 UTC] mick at deafzone dot ch
Description:
------------
Hello there

I'm Michael from www.binarykitchen.com - for one of my websites I see very strange PHP Fatal Errors in the log file I have specified in ini_set('error_log', $logFile);

It always contains entries like these:
[11-Apr-2012 20:18:11 UTC] PHP Fatal error:  Allowed memory size of 201326592 bytes exhausted (tried to allocate 523800 bytes) in /var/www/[...]/File.php on line 424

Line is not always 424, it's mostly random. I know somewhere an error is thrown and the code is somewhat in an endless loop. Must be a bug in my code but I can't find it. There are over 2000 classes heh.

I really need a backtrace. Or more debugging information. Hence I wonder if error_log could produce more information for me?

Any ideas or suggestions are welcome. Sorry to post this issue at the wrong place but I don't know where else to ask but to address to the PHP Core Devs directly.

Thanks heaps for your advice.

Cheers
Michael


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-12 03:41 UTC] mick at deafzone dot ch
Correction, I'm specifying the path to the error log file already in the htaccess file like that:
php_value error_log [PATH TO LOG FILE]

I can I force it to generate a backtrace as well with another parameter?
 [2012-04-12 03:43 UTC] aharvey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Install a debugger; hit up a support channel; go from there.
 [2012-04-12 03:43 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2012-04-12 03:46 UTC] mick at deafzone dot ch
Sure, I have thought of a debugger. But the error happens random. I could debug for an enternity and won't find it.

It happens rarely and I need a backtrace when it does.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 11:01:27 2025 UTC