ID: 46238 Updated by: [EMAIL PROTECTED] Reported By: seppo0010 at yahoo dot com dot ar -Status: Assigned +Status: Closed Bug Type: Unknown/Other Function Operating System: Ubuntu 8.04 PHP Version: 5.3.0alpha2 Assigned To: felipe New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. 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