ID: 27669 Updated by: [EMAIL PROTECTED] Reported By: admin at solidox dot org -Status: Open +Status: Assigned Bug Type: Zend Engine 2 problem PHP Version: 5.0.0RC1 -Assigned To: +Assigned To: andi New Comment:
verified too.. Previous Comments: ------------------------------------------------------------------------ [2004-03-24 05:42:00] admin at solidox dot org Description: ------------ calling a method of an uninstantiated class where the method name is contained in an array causes an internal compiler error in php5 (tested b4 and rc1) this works fine in php4. i believe this is similar to bug #25652 and apparently it was fixed in cvs in late 2003. this bug however exists in RC1, not sure if it's the same or related. Reproduce code: --------------- <? class A { function hello() { echo "Hello World\n"; } } $x = 'hello'; $y[0] = 'hello'; A::$x(); A::$y[0](); ?> Expected result: ---------------- Hello World Hello World Actual result: -------------- Fatal error: Internal compiler error - please report! in /home/solidox/bug.php on line 12 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27669&edit=1