Changes in HTTP_xxx_VARS between 4.0.1pl2 and 4.0.3.pl1

From: Date: Wed, 15 Nov 2000 19:05:05 +0000
Subject: Changes in HTTP_xxx_VARS between 4.0.1pl2 and 4.0.3.pl1
Groups: php.general 
Request: Send a blank email to php-general+get-25494@lists.php.net to get a copy of this message
Hi, I've just upgraded my server from PHP 4.0.1pl2 to 4.0.3pl1, and most of my pages have broken. This is a major problem, as I will now have to rewrite EVERY script on my site that uses this mechanism (which is most of them), or wind back to 4.0.1. Please could someone try to repro this issue, and let me know the results by email (preferably to cjs4@gmx.net). On 4.0.1, the $GLOBALS['HTTP_POST_VARS'] would only be set when a POST request was executed. Similarly, $GLOBALS['HTTP_GET_VARS'] would only be assigned when a GET request was executed. On 4.0.3, $GLOBALS['HTTP_POST_VARS'] becomes is always assigned as a 0-element array on a GET request. (I'm assuming similar behaviour for HTTP_GET_VARS on a POST request). Is this intended behaviour, or a transient bug in 4.0.3pl1? If it is an intended change, why isn't it mentioned in the ChangeLog? If not, does anyone know what may have happened to cause this, and how to fix it? The problem can be demonstrated by executing the following code on each platform: <?php if (isset($GLOBALS['HTTP_POST_VARS'])) $http_vars =& $GLOBALS['HTTP_POST_VARS']; else if (isset($GLOBALS['HTTP_GET_VARS'])) $http_vars =& $GLOBALS['HTTP_GET_VARS']; else $http_vars = array(); echo '<PRE>'; var_dump($GLOBALS['HTTP_GET_VARS']); var_dump($http_vars); echo '</PRE>'; ?> TIA, Chris.

« previous php.general (#25494) next »