#35522 [Opn->Bgs]: argv and argc not defined
| From: | iliaa@php.net | Date: | Fri, 02 Dec 2005 15:36:59 +0000 |
| Subject: | #35522 [Opn->Bgs]: argv and argc not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89646@lists.php.net to get a copy of this message | ||
ID: 35522
Updated by: iliaa@php.net
Reported By: niam dot niam at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: FreeBsd 6.0
PHP Version: 5.1.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
use $_SERVER['argv'] and $_SERVER['argc']
Previous Comments:
------------------------------------------------------------------------
[2005-12-02 16:34:59] niam dot niam at gmail dot com
Description:
------------
argv and argc not defined through script is called from inetd
Reproduce code:
---------------
#!/bin/php
<?php
if (count($argv) > 0 )
{
echo $argv[1];
}
else
{
echo "no servers";
}
?>
Expected result:
----------------
serv1
Actual result:
--------------
no servers
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35522&edit=1