|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-29 20:56 UTC] joey at cvs dot php dot net
[2000-08-01 23:25 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 11 06:00:01 2026 UTC |
example: <? class Session { function Session() { session_start(); global $HTTP_SESSION_VARS, $GLOB; ($HTTP_SESSION_VARS != null) && ($this->_v1 = &$HTTP_SESSION_VARS); $this->_v2 = &$HTTP_SESSION_VARS; ($GLOB != null) && ($this->_v3 = &$GLOB); $this->_v4 = &$GLOB; } } $GLOB = 'asta e'; $s1 = new Session(); printf ("1) cmp v1 v2 = %d <br>\n", $s1->_v1 === $s1->_v2); printf ("2) cmp v2 SESS = %d<br>\n", $s1->_v2 === $HTTP_SESSION_VARS); printf ("3) cmp v3 v4 = %d <br>\n", $s1->_v3 === $s1->_v4); printf ("4) cmp v4 GLOB = %d\n", $s1->_v4 === $GLOB); The expected output would have been: 1 1 1 1 the actual result is: 0 1 1 1 Configuration: PHP4 as Apache module, register_globals off , track_vars on The same bevaviour is shown when I try any HTTP_*_VARS that are set upon request