From: hybrid at tuxfamily dot org Operating system: * PHP version: 5.0.0 PHP Bug Type: Feature/Change Request Bug description: $class::method(arg) is not allowed
Description: ------------ i don't know if this is a bug or not, but it seems that php doesn't allow for $class::method(arg), this might be done using call_user_func but, it's simply annoying Reproduce code: --------------- <?php class test { final static function testing() { echo 'hello'; } } $class = 'test'; $class::testing(); ?> Expected result: ---------------- hello Actual result: -------------- unexpected T_PAAMAYIM_NEKUDOTAYIM or something like that :D -- Edit bug report at http://bugs.php.net/?id=29466&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29466&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29466&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29466&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29466&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29466&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29466&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29466&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29466&r=support Expected behavior: http://bugs.php.net/fix.php?id=29466&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29466&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29466&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29466&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29466&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29466&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29466&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29466&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29466&r=float