php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22537 isset result strange on $_SERVER["QUERY_STRING"]
Submitted: 2003-03-04 10:49 UTC Modified: 2003-03-04 21:44 UTC
From: r_brenart at yahoo dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.1 OS: Win2k Professional
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: r_brenart at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-03-04 10:49 UTC] 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"]);

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-04 19:44 UTC] sniper@php.net
Never heard of 'empty()' ? And it's Apache2 that is doing this..

 [2003-03-04 21:44 UTC] r_brenart at yahoo dot com
Yes, used empty as the workaround, still figured it was incorrect behavior.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 18 18:00:01 2025 UTC