|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7657 $argc / $argv no longer working in command line scripting
Submitted: 2000-11-06 03:49 UTC Modified: 2000-11-06 05:00 UTC
From: hartmut at six dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (06/11/2000) OS: *nix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hartmut at six dot de
New email:
PHP Version: OS:


 [2000-11-06 03:49 UTC] hartmut at six dot de
when using the cgi version of php as a command line script processor
it does no longer transfer command line arguments into the $argv array

the following script argv.php


when called as 

  php -q argv.php abc def

should return (and does so up to PHP 4.0.3pl1)

  array(3) {
    string(8) "argv.php"
    string(3) "abc"
    string(3) "def"

recent CVS versions of php 4.0.4dev return

  array(0) {

instead ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-06 05:00 UTC]
Fixed in CVS
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 09:01:23 2020 UTC