From: seppo0010 at yahoo dot com dot ar Operating system: Ubuntu 8.04 PHP version: 5.3.0alpha2 PHP Bug Type: Unknown/Other Function Bug description: Segmentation fault on static call with empty string method
Description: ------------ The magic __callStatic method throws a segmentation fault when the method name is an empty string. Reproduce code: --------------- class a { static function __callStatic($name, $arguments) { var_dump(array($name, $arguments)); } } $a = 'a'; $b = ''; $a::$b($a); Expected result: ---------------- array(2) { [0]=> string(0) "" [1]=> array(1) { [0]=> string(1) "a" } } - OR - Fatal error: Function name must be a not empty string in __FILE__ on line 10 Actual result: -------------- Internal server error when running on apache. Segmentation fault running as CLI. -- Edit bug report at http://bugs.php.net/?id=46238&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46238&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46238&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46238&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46238&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46238&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46238&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46238&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46238&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46238&r=support Expected behavior: http://bugs.php.net/fix.php?id=46238&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46238&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46238&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46238&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46238&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46238&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46238&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46238&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46238&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46238&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46238&r=mysqlcfg