#28585 [Fbk->NoF]: Query String ending with "=" leads to an empty $_GET array

From: Date: Wed, 21 Jul 2004 23:00:06 +0000
Subject: #28585 [Fbk->NoF]: Query String ending with "=" leads to an empty $_GET array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63300@lists.php.net to get a copy of this message
 ID:               28585
 Updated by:       php-bugs@lists.php.net
 Reported By:      troublegum at woltlab dot de
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         CGI related
 Operating System: Linux
 PHP Version:      4.3.6
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2004-07-14 14:21:42] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2004-05-31 01:23:25] troublegum at woltlab dot de

Description:
------------
An Query String with "=" at the end deletes all other GET variables
(empty $_GET array).
Seems to be related to the following bugs, but as far as I can see this
server does not run Apache2 and suPHP (?).
http://bugs.php.net/bug.php?id=27740
http://bugs.php.net/bug.php?id=27861
---
'./configure' '--prefix=/opt/php-4.3.6' '--enable-bcmath'
'--with-bz2'
'--enable-force-cgi-redirect' '--enable-fastcgi'
'--enable-discard-path' '--with-layout=GNU'
'--with-config-file-path=/opt/php-4.3.6/etc' '--enable-calendar'
'--with-curl' '--with-curlwrappers' '--enable-dbase'
'--enable-ftp'
'--with-gettext' '-enable-exif' '--with-gd'
'--with-imap=/opt/imap-2004' '--with-imap-ssl=/usr'
'--with-mime-magic'
'--with-mysql' '--with-ncurses' '--with-openssl=/usr'
'--with-zip'
'--with-zlib' '--enable-dba=shared' '--with-db4'
'--with-mssql'
---
Server API: CGI/FastCGI
magic_quotes_gpc = On
register_argc_argv = On
register_globals = On
variables_order = EGPCS
--- 
This problem occured on three of our client's server.
I can provide the complete output of phpinfo() if needed.
---

Reproduce code:
---------------
Open get.php?key=val&foo= in your browser.
Notice the "=" at the end.
-- get.php --
<?php
var_dump($_GET);
?>

Expected result:
----------------
array(2) {
  ["key"]=>
  string(3) "val"
  ["foo"]=>
  string(0) ""
}

Actual result:
--------------
array(0) {
}


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28585&edit=1


Thread (3 messages)

« previous php.bugs (#63300) next »