From: admin at solidox dot org
Operating system:
PHP version: 5.0.0RC1
PHP Bug Type: Zend Engine 2 problem
Bug description: calling method name contained in array
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 bug report at http://bugs.php.net/?id=27669&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27669&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27669&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27669&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27669&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27669&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27669&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27669&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27669&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27669&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27669&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27669&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27669&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27669&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27669&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27669&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27669&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27669&r=float