Bug #69952 [NEW]: Data integrity issues accessing superglobals by reference

From: Date: Sat, 27 Jun 2015 17:06:59 +0000
Subject: Bug #69952 [NEW]: Data integrity issues accessing superglobals by reference
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193941@lists.php.net to get a copy of this message
From: michael dot babker at gmail dot com Operating system: N/A PHP version: 7.0.0alpha2 Package: Session related Bug Type: Bug Bug description:Data integrity issues accessing superglobals by reference Description: ------------ Within Joomla, our input retrieval and setting API accesses the superglobals by reference. It appears because of some of the engine refactoring, accessing the same data is not working the same way. In the case of Joomla, this is most evident in our session boot sequence (extracted into the test script below) where data validated in the $_COOKIE superglobal is no longer returned correctly. Test script: --------------- https://github.com/mbabker/session-test/blob/purephp/index.php Expected result: ---------------- On each execution of the script, the session counter should increment by one. Actual result: -------------- On each execution of the script, the session counter's value is one. -- Edit bug report at https://bugs.php.net/bug.php?id=69952&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69952&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69952&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69952&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69952&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69952&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69952&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69952&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69952&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69952&r=support Expected behavior: https://bugs.php.net/fix.php?id=69952&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69952&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69952&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69952&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69952&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69952&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69952&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69952&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69952&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69952&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69952&r=mysqlcfg

« previous php.bugs (#193941) next »