From:             [EMAIL PROTECTED]
Operating system: Windows XP SP2
PHP version:      5.0.3
PHP Bug Type:     Feature/Change Request
Bug description:  Infinite recursion protection needs error

Description:
------------
F:\>php -v
PHP 5.0.3 (cli) (built: Dec 15 2004 08:07:57)

Infinite recursion is predictably terminated, but the Zend Engine produces
no output to that effect (at least in CLI). At least a E_WARNING should be
emitted to warn developers that this is really what happened (as it might
not be clear).

Reproduce code:
---------------
<?php
/* php/bugs/recursive.php5
 * Infinite recursion protection needs error
 */

$i = 0;
function iWillRecurse() {
  global $i;
  printf("Recursions: %7s\n", number_format(++$i));
  iWillRecurse();
}

iWillRecurse();

Expected result:
----------------
F:\>php -f php\bugs\recursive.php5
..
Recursions:   6,283
Recursions:   6,284
Warning: Infinite recursion in F:\php\bugs\recursive.php5 on line 10

F:\>

Actual result:
--------------
F:\>php -f php\bugs\recursive.php5
..
Recursions:   6,283
Recursions:   6,284

F:\>

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

Reply via email to