From: equake at epmail dot com dot br Operating system: Linux 2.4.24 PHP version: 5.0.0RC2 PHP Bug Type: Reproducible crash Bug description: return $value & segmentation fault
Description: ------------ I got a Segmentation Fault every time that I try to return some method that does not exists. Reproduce code: --------------- abstract class test { function __call($method, $params) { if (is_callable(array($this, $method))) { echo ("ok<br>"); return $this->{$method}($params); // abstract class test { function __call($method, $params) { if (is_callable(array($this, $method))) { echo ("ok<br>"); return $this->{$method}($params); // [error_log] [notice] child pid # exit signal Segmentation fault (11) } } } class test2 extends test { function __construct() { echo ("hi, im test2 at ". time () ." seconds since 01/01/1970 <br>"); } function bla() { echo ('haha'); } } $x = new test2(); $x->bla_inexistent(); // any inexistent method name } } } class test2 extends test { function __construct() { echo ("hi, im test2 at ". time () ." seconds since 01/01/1970 <br>"); } function bla() { echo ('haha'); } } $x = new test2(); $x->bla_inexistent(); // any inexistent method name Expected result: ---------------- hi, im test2 at 1086644752 seconds since 01/01/1970 Actual result: -------------- "[error_log] [notice] child pid # exit signal Segmentation fault (11)" on the apache Error Log -- Edit bug report at http://bugs.php.net/?id=28687&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28687&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28687&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28687&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28687&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28687&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28687&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28687&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28687&r=support Expected behavior: http://bugs.php.net/fix.php?id=28687&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28687&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28687&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28687&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28687&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28687&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28687&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28687&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28687&r=float