ID: 37481
Updated by: [EMAIL PROTECTED]
Reported By: phpbugs at thequod dot de
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: Ubuntu Linux
PHP Version: 5CVS-2006-05-17 (CVS)
New Comment:
This is the way it works and this is expected.
Previous Comments:
------------------------------------------------------------------------
[2006-05-17 18:34:50] phpbugs at thequod dot de
Description:
------------
If memory_limit gets reached, I get "Allowed memory size
of XXX bytes exhausted (tried to allocate XXX bytes)"
written to the server's main error log and
[Wed May 17 20:22:26 2006] [error] [client XXX]
(104)Connection reset by peer: FastCGI: comm with
server "/var/www/XXX/php5-fcgi-starter" aborted: read
failed
[Wed May 17 20:22:26 2006] [error] [client XXX] FastCGI:
incomplete headers (0 bytes) received from
server "/var/www/XXX/php5-fcgi-starter"
into the virtual host's error log.
Reproduce code:
---------------
<?php
ini_set('memory_limit', '1M' );
$s = '';
while( 1 )
$s .= 'foo';
?>
Expected result:
----------------
[Wed May 17 20:23:49 2006] [error] [client XXX] FastCGI:
server "/var/www/XXX/php5-fcgi-starter" stderr: PHP Fatal
error: Allowed memory size of XXX bytes exhausted (tried
to allocate XXX bytes) in /var/www/XXX/web/index.php on
line XXX
Actual result:
--------------
No entry about the exhausted memory in the virtual host's
error log, but only in the main error log, _without_ any
source file or line mentioned (which is the case with
mod_php AFAIK)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37481&edit=1