Unexpected Notice message
| From: | Arno Kuhl | Date: | Wed, 04 Jul 2012 15:47:37 +0000 |
| Subject: | Unexpected Notice message | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-318399@lists.php.net to get a copy of this message | ||
I'm a bit baffled by a notice message displayed:
Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in
..
The line in question has
if (strlen($_SERVER[QUERY_STRING]) > 0) {
..
So I set a breakpoint on the line of the notice. The code executes to the
breakpoint, I inspect the $_SERVER[QUERY_STRING] and it's got the expected
value, it only executes that line once (never gets to that breakpoint
again), and yet I get the notice message. Can anyone give me an idea what's
going on here?
Cheers
Arno