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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 08:01:30 2024 UTC