|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28585 Query String ending with "=" leads to an empty $_GET array
Submitted: 2004-05-31 01:23 UTC Modified: 2004-07-22 01:00 UTC
Avg. Score:3.0 ± 1.6
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: troublegum at woltlab dot de Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 4.3.6 OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: troublegum at woltlab dot de
New email:
PHP Version: OS:


 [2004-05-31 01:23 UTC] troublegum at woltlab dot de
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 (?).
'./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 --

Expected result:
array(2) {
  string(3) "val"
  string(0) ""

Actual result:
array(0) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-22 01:00 UTC] php-bugs at lists dot php dot net
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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 23:01:28 2024 UTC