note 38944 deleted from language.variables.predefined by curt

From: Date: Tue, 06 Jul 2004 02:46:08 +0000
Subject: note 38944 deleted from language.variables.predefined by curt
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72654@lists.php.net to get a copy of this message
Note Submitter: jon@hiveminds.net ---- Just thought it might help someone to know that the variable names for the superglobals cannot be relied upon to be case-insensitive. In other words, to be sure your scripts will run correctly, you must use $_GET, $_POST, $_COOKIE, etc., and *not* $_get, $_Get; $_post, $_Post; $_cookie, $_Cookie... or whatever. (I just spent an hour troubleshooting a script for someone and finally figured out the reason it wasn't working was that they were using "$_Get" and "$_Post" and these don't work.) I found that the superglobal variablenames are case-sensitive on PHP 4.3.2/4.3.3 for Win32 and 4.3.2 on Linux, and I think that's enough to prove the point that it's not safe to regard them as otherwise.

« previous php.notes (#72654) next »