|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27556 argc not working correctly
Submitted: 2004-03-10 19:02 UTC Modified: 2004-03-18 17:26 UTC
From: stan at workflowinc dot com Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 4CVS-2004-03-11 (dev) OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-03-10 19:02 UTC] stan at workflowinc dot com
$_SERVER['argv'] is not detecting any arguments (register_argc_argv in php.ini is turned on).  I'm actually working with 4.3.5RC4-dev, it wasn't on the list.

Reproduce code:

Expected result:
      [0] => test.php
      [1] => arg1

Actual result:
      [0] => test.php


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-10 19:44 UTC]
Works fine for me. How exactly are you running the script?
And are you using CLI or CGI?

 [2004-03-11 04:19 UTC] stan at workflowinc dot com
I simply ran test.php arg1 from the command line interface.
 [2004-03-11 08:39 UTC]
Is $_SERVER array populated (has any values) ? 
 [2004-03-11 08:51 UTC] stan at workflowinc dot com
$_SERVER is populated (by the way argc => 1)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 02:01:28 2024 UTC