|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33535 $_SERVER['argv'] returns an unusefull array
Submitted: 2005-07-01 16:17 UTC Modified: 2005-07-01 16:30 UTC
From: cristian dot zuddas at gmail dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.3.11 OS: Linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: cristian dot zuddas at gmail dot com
New email:
PHP Version: OS:


 [2005-07-01 16:17 UTC] cristian dot zuddas at gmail dot com
The var. $_SERVER['argv'] returns an array with only ONE element, that contains all the query string. I don't think is correct... why the var. contains an array with only one string, and not directly a (less expensive) string?

Reproduce code:

Expected result:
string type:   l=26&p=5&g=fsd


    [0] => l=26
    [1] => p=5
    [2] => g=fsd

Actual result:
    [0] => l=26&p=5&g=fsd


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-01 16:30 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Because in command line arguments are passed in different way and "a=1&b=2" syntax is used only in URLs.

See details here: 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 10:01:30 2024 UTC