|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-03 11:32 UTC] hara at oderwat dot de
[2000-11-03 11:55 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 09 22:00:02 2026 UTC |
Hi! After installing 4.0.3pl1 some of my scripts are broken because of a different behaviour with the following code: <?php function test() { global $HTTP_POST_VARS; if(isset($HTTP_POST_VARS)) print "set"; else print "unset"; } test(); ?> On php-4.0.2 this script prints "unset" (if it was not a post reguest to the server) on php-4.0.3 the same script always prints "set" In comparison: <?php function test() { if(isset($GLOBAlS["HTTP_POST_VARS"])) print "set"; else print "unset"; } test(); ?> works as espected by me... Was I relaying on some site effekt or is there something wrong now in 4.0.3pl1 Sincerely, Hans Raaf