ID:               31338
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Windows XP SP2
 PHP Version:      5.0.3
 New Comment:

This was requested before, and this can NOT be done in a nice way.


Previous Comments:
------------------------------------------------------------------------

[2004-12-29 21:53:36] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=31338&edit=1

Reply via email to