php.net |  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: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: csaba at alum dot mit dot edu
New email:
PHP Version: OS:

 

 [2005-08-28 01:26 UTC] csaba at alum dot mit dot edu
Description:
------------
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
...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-28 03:03 UTC] sniper@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC