From:             kevin at creativeanvil dot com
Operating system: RHEL 4x
PHP version:      5.2.5
PHP Bug Type:     Scripting Engine problem
Bug description:  Endless Recursion Ends quickly, throws no error

Description:
------------
Basically my script was ending in the middle and output at the end of the
script was not outputted.  This was due to a coding error, however I
believe a PHP error should have been thrown because PHP terminated the
request at some point.  It was a stupid mistake, however not the easiest to
track down.

The code isn't my actual code, but it will reproduce what I think is a
problem.

Reproduce code:
---------------
<?php
$c=0;
function recursiveTest() {
        global $c;
        echo $c++."<br>";
        recursiveTest();
}
recursiveTest();
?>

Expected result:
----------------
I would expect it to go on until memory limit is reached, throwing an
error, max execution time reached, throwing an error, or something that
throws an error.

In my environment it gets to 19456 and stops everytime, no error is given
and it stops very quicky.

ENDLESS RECURSION ERROR.

Some kind of error.

Actual result:
--------------
1
2
3
....
19456

-- 
Edit bug report at http://bugs.php.net/?id=44883&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44883&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44883&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44883&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44883&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44883&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44883&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44883&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44883&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44883&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44883&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44883&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44883&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44883&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44883&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44883&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44883&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44883&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44883&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44883&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44883&r=mysqlcfg

Reply via email to