Bug #71193 [NEW]: old bug has reappeared

From: Date: Tue, 22 Dec 2015 05:00:18 +0000
Subject: Bug #71193 [NEW]: old bug has reappeared
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198121@lists.php.net to get a copy of this message
From: iam4webwork at hotmail dot com Operating system: n/a PHP version: 7.0.1 Package: *General Issues Bug Type: Bug Bug description:old bug has reappeared Description: ------------ Cannot statically call a method if its name is in an array. Last time this was an issue was apparently back in 2004 (see bug #27669). This bug effects PHP versions 7.0.0alpha2 - 7.0.1, 7.1@2015-11 (see https://3v4l.org/8MTtD) Test script: --------------- <?php class A { static function hello(){ echo "Hello World\n"; } } $x = 'hello'; $y[0] = 'hello'; A::$x(); A::$y[0](); Expected result: ---------------- Hello World Hello World Actual result: -------------- Hello World Fatal error: Uncaught Error: Access to undeclared static property: A::$y in /in/8MTtD:11 Stack trace: #0 {main} thrown in /in/8MTtD on line 11 Process exited with code 255. -- Edit bug report at https://bugs.php.net/bug.php?id=71193&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71193&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71193&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71193&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71193&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71193&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71193&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71193&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71193&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71193&r=support Expected behavior: https://bugs.php.net/fix.php?id=71193&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71193&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71193&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71193&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71193&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71193&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71193&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71193&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71193&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71193&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71193&r=mysqlcfg

« previous php.bugs (#198121) next »