ID: 27669 Comment by: ladislav dot prosek at matfyz dot cz Reported By: admin at solidox dot org Status: Assigned Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5CVS-2004-04-07 Assigned To: andi New Comment:
I have 5.0.0 and the bug is still there. You are kidding us, aren't you? ;-) And you should update the Operator precedence table in documentation, by the way, as :: precedence seems to be undefined. Previous Comments: ------------------------------------------------------------------------ [2004-06-14 10:17:30] profic at kursknet dot ru I have rc3 and bug is still here ------------------------------------------------------------------------ [2004-04-07 06:07:48] [EMAIL PROTECTED] verified too.. ------------------------------------------------------------------------ [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