From:             Marius at BudgetDedicated dot com
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     Reproducible crash
Bug description:  segfault on looped function return

Description:
------------
On all php versions I have available to test, including a local compile of
the most recent stable (5.2.6) , using both the apache2 and cli api, I get
a segfault on a looped function return. The example below is very simple
and no one should make this mistake, but it must not cause php to segfault.
For some structures involving complex objects and classes, returning such a
loop may not always be obvious and the lack of error reporting after a
segfault may make it hard to find the problem. 

Reproduce code:
---------------
<?
mySegfault();
function mySegfault(){
 return mySegfault();
}
?>



Expected result:
----------------
Error

Actual result:
--------------
Segfault

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

Reply via email to