ID: 46238 Updated by: [EMAIL PROTECTED] Reported By: seppo0010 at yahoo dot com dot ar -Status: Open +Status: Assigned Bug Type: Unknown/Other Function Operating System: Ubuntu 8.04 PHP Version: 5.3.0alpha2 -Assigned To: +Assigned To: felipe
Previous Comments: ------------------------------------------------------------------------ [2008-10-05 22:20:41] seppo0010 at yahoo dot com dot ar 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 this bug report at http://bugs.php.net/?id=46238&edit=1