Bug #63854 [NEW]: PHP 5.3.15

From: Date: Wed, 26 Dec 2012 12:33:40 +0000
Subject: Bug #63854 [NEW]: PHP 5.3.15
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9319@lists.php.net to get a copy of this message
From: spaghetti dot coder dot ru at gmail dot com Operating system: OS X 1.7.5, Win 7 PHP version: 5.3Git-2012-12-26 (Git) Package: Documentation problem Bug Type: Bug Bug description:PHP 5.3.15 Description: ------------ --- From manual page: http://www.php.net/language.variables.basics --- It's still possible to create a variable violation the [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* rule Test script: --------------- <?php // $*noWay = ''; // PHP Parse error: parse error, expecting `T_VARIABLE' or `'$'' in php shell code on line 1 $hackIt = '*iAmASiPointer!!!'; $$hackIt = 'Howdy'; echo $$hackIt; echo "\n"; var_dump(get_defined_vars()); Expected result: ---------------- $$hackIt = 'Howdy'; line was supposed to trigger a PHP Parse error Actual result: -------------- Outputs: Howdy array(10) { ... ["hackIt"]=> string(17) "*iAmASiPointer!!!" ["*iAmASiPointer!!!"]=> string(4) "Howdy" } -- Edit bug report at https://bugs.php.net/bug.php?id=63854&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63854&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63854&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63854&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63854&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63854&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63854&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63854&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63854&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63854&r=support Expected behavior: https://bugs.php.net/fix.php?id=63854&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63854&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63854&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63854&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63854&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63854&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63854&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63854&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63854&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63854&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63854&r=mysqlcfg

« previous php.doc.bugs (#9319) next »