From: 007not at gmail dot com Operating system: win, linux PHP version: 5.4Git-2012-06-17 (snap) Package: Scripting Engine problem Bug Type: Bug Bug description:self:$var - PHP should produce an error
Description: ------------ Take a good look in the code, a special attention to : at line 10. I think that PHP should produce an error in this line. Test script: --------------- <?php class test { static $var = 0; static function run() { $var = 1; $newvar = 2; self:$var = $newvar; //where is error?! this is line 10 echo $var . PHP_EOL; echo self::$var . PHP_EOL; //echo self:$var; //rise error! } } test::run(); Expected result: ---------------- an error in line 10 Actual result: -------------- 2 0 -- Edit bug report at https://bugs.php.net/bug.php?id=62342&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62342&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62342&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62342&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62342&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62342&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62342&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62342&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62342&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62342&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62342&r=support Expected behavior: https://bugs.php.net/fix.php?id=62342&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62342&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62342&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62342&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62342&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62342&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62342&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62342&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62342&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62342&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62342&r=mysqlcfg