ID: 35967
Updated by: [EMAIL PROTECTED]
Reported By: sqchen at citiz dot net
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: redhat 7.3
PHP Version: 5.1.1
New Comment:
This has nothing to do with return. You're creating a infinite
recursion here (where foo() is calling foo()). This will exhaust the
stack and PHP will crash. This is expected behavior.
Previous Comments:
------------------------------------------------------------------------
[2006-01-11 07:15:05] sqchen at citiz dot net
Description:
------------
the "return" control statement will cause segfault
Reproduce code:
---------------
<?php
funciton foo()
{
return foo();
}
foo();
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35967&edit=1