Doc #72500 [NEW]: Imprecision about compatibility of "Variable variables and global"

From: Date: Mon, 27 Jun 2016 08:24:29 +0000
Subject: Doc #72500 [NEW]: Imprecision about compatibility of "Variable variables and global"
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13625@lists.php.net to get a copy of this message
From: gwenael dot chailleu at gmail dot com Operating system: PHP version: 7.0.8 Package: Documentation problem Bug Type: Documentation Problem Bug description:Imprecision about compatibility of "Variable variables and global" Description: ------------ Hello, I can read in http://php.net/manual/fr/migration70.incompatible.php that "Variable variables can no longer be used with the global keyword. ". In my interpretation of this warning "global $$var;" is no longer a valid syntax and must be replaced by "global ${$var};" . But, obviously, "global $$var;" it still accepted (only tested in php 7.0.4). Is this particular syntax planned to be removed ? The code example given (global $$foo->bar;) should rather illustrate the new left-to right evaluation order of the expressions including variable variables syntax. Thanks for your answer ! -- Edit bug report at https://bugs.php.net/bug.php?id=72500&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72500&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72500&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72500&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72500&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72500&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72500&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72500&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72500&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72500&r=support Expected behavior: https://bugs.php.net/fix.php?id=72500&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72500&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72500&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72500&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72500&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72500&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72500&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72500&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72500&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72500&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72500&r=mysqlcfg

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