PHP 4.0 Bug #1901: recursive call limitation
| From: | gregori at datanetms dot co dot uk | Date: | Wed, 28 Jul 1999 10:11:37 +0000 |
| Subject: | PHP 4.0 Bug #1901: recursive call limitation | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9254@lists.php.net to get a copy of this message | ||
From: gregori@datanetms.co.uk
Operating system: linux (RedHat 6)
PHP version: 4.0 Beta 1
PHP Bug Type: Reproduceable crash
Bug description: recursive call limitation
I guess that it's not a common thing that we are supposed to do with a script language but I
think it's important to let you know ...
netscape 4.6 gave me "the document contained no data ..." with this script :
<html>
<body bgcolor="#ffffff" text="#000088">
<?php
function nothing($val) {
if ($val <=0 ) return(0);
nothing($val - 1);
}
echo "<br>simple function ... ";
echo "<br>recursive function ... ";
$debut = time();
nothing(8192);
$end = time();
echo "<center>Execution time : ".($end - $debut)."</center>";
?>
</body>
</html>
Note : the script works fine with nothing(8191) or a smaller value.
Note2: C++ support a such number of recursive call.
Is it important ?! I really dunno ...
gregori