#22537 [Bgs]: isset result strange on $_SERVER["QUERY_STRING"]
| From: | r_brenart at yahoo dot com | Date: | Wed, 05 Mar 2003 03:44:16 +0000 |
| Subject: | #22537 [Bgs]: isset result strange on $_SERVER["QUERY_STRING"] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34839@lists.php.net to get a copy of this message | ||
ID: 22537
User updated by: r_brenart at yahoo dot com
Reported By: r_brenart at yahoo dot com
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Win2k Professional
PHP Version: 4.3.1
New Comment:
Yes, used empty as the workaround, still figured it was incorrect
behavior.
Previous Comments:
------------------------------------------------------------------------
[2003-03-04 19:44:03] sniper@php.net
Never heard of 'empty()' ? And it's Apache2 that is doing this..
------------------------------------------------------------------------
[2003-03-04 10:49:43] r_brenart at yahoo dot com
Am running Apache 2.0.44 so perhaps this is part of the experimental
nature of PHP's support for it.
isset($_SERVER["QUERY_STRING"]) is always returning true, as expected
because even as a blank value it's being put into the $_SERVER array,
whereas this was not happening for me under
Win NT 4.0, IIS 4.0, Apache 4.3.0
<?php
echo "<pre>";
print_r($_SERVER);
echo isset($_SERVER["QUERY_STRING"]);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22537&edit=1