[PHP-DEV] PHP 4.0 Bug #1920: limit on number of function calls (non recursive) From: alan <email protected>
Date: 07/29/99

From: alan <email protected>
Operating system: RH Linux 5.2
PHP version: 4.0 Latest CVS (29/07/1999)
PHP Bug Type: Reproduceable crash
Bug description: limit on number of function calls (non recursive)

the latest (1999-07-29 10:30:00 GMT) cvs compiled as a cgi binary the
following (non recursive) script...
=====================
<?php
 
$count=0;
while(true){
        one(&$count);
}
 
function one($count){
        echo $count."\n";
        $count++;
}
 
?>
===================

...causes the following error;
.

.
.
5459
5460
<br>
<b>Fatal error</b>: Allowed memory size of 120000000 bytes exhausted at zend_ptr_stack.c:38 (tried to allocate -196608 bytes) in <b>bigarray.php</b> on line <b>5</b><br>
[alan <email protected>]$

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>