|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34284 CLI phpinfo showing html on _SERVER["argv"]
Submitted: 2005-08-28 01:26 UTC Modified: 2005-08-28 03:03 UTC
From: csaba at alum dot mit dot edu Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 5.1.0RC1 OS: Win XP Pro
Private report: No CVE-ID:
 [2005-08-28 01:26 UTC] csaba at alum dot mit dot edu
If, from the CMD line of my Win XP Pro, I invoke the CLI php.exe to do:
<? phpinfo() ?>
then I see that only the _SERVER["argv"] line has html markup:

    [0] =&gt; -
instead of
    [0] => -

That seems incorrect, being at odds with the rest of the output generated, which has no html markup.

Csaba Gabor from Vienna

Reproduce code:
php.exe -r "phpinfo();"

Expected result:
    [0] => -

Actual result:
_SERVER["REQUEST_TIME"] => 1125184797
_SERVER["argv"] => Array
    [0] =&gt; -

_SERVER["argc"] => 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-28 03:03 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 03:01:32 2015 UTC