ID: 35522 Updated by: [EMAIL PROTECTED] 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
