php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17348 register_argc_argv on command line
Submitted: 2002-05-21 21:13 UTC Modified: 2002-05-22 02:37 UTC
From: hz11 at nyu dot edu Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: RedHat 7.3
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: hz11 at nyu dot edu
New email:
PHP Version: OS:

 

 [2002-05-21 21:13 UTC] hz11 at nyu dot edu
I've been using 4.1.2, but just compiled and installed 4.2.1.  I compiled as a CGI, and run local scripts from the command line like this:

#!/usr/local/php/bin -q -d register_argc_argv=1
<?php print 'hello'; ?>

This has been working fine, but with 4.2.1, I get the odd error:

Error in argument 1, char 3: option not found
Error in argument 1, char 4: option not found -
Error in argument 1, char 3: option not found

I've compiled 4.2.1 both as a regular CGI and with --enable-cli.  Both are the same as well.

Thanks,

Hans

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-22 02:37 UTC] edink@php.net
This is not a PHP bug but a limitation of Linux kernel. Line:

#!/usr/local/php/bin -q -d register_argc_argv=1

can contain only a single argument (-q in this case).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 17:01:29 2024 UTC