Doc #66153 [Opn->Wfx]: $argv documentation specific to command line
| From: | frozenfire@php.net | Date: | Tue, 26 Nov 2013 07:18:27 +0000 |
| Subject: | Doc #66153 [Opn->Wfx]: $argv documentation specific to command line | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10638@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66153&edit=1
ID: 66153
Updated by: frozenfire@php.net
Reported by: splashcd at gmail dot com
Summary: $argv documentation specific to command line
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.5.6
Block user comment: N
Private report: N
New Comment:
This is a SAPI-specific (your webserver) behaviour which should not be relied upon. I just tested it
myself with nginx, and $argv is null.
I'm sure you can understand that SAPIs can cause all sorts of behaviours in PHP's
invocation, and it's not feasible or sane to document all of them, so I'm marking this as
wont-fix.
Previous Comments:
------------------------------------------------------------------------
[2013-11-22 19:48:25] splashcd at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/reserved.variables.argv
---
According to your documentation:
Contains an array of all the arguments passed to the script when running from the command line.
However, $argv will contain
Array ( [0] => r=1&t=2 )
When I run from browser with URL parameters "r=1&t=2"
Shouldnt the documentation mention something about what $argv will contain when run from a URL?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66153&edit=1