Req #47541 [Com]: check all of command line for bad args
Edit report at https://bugs.php.net/bug.php?id=47541&edit=1
ID: 47541
Comment by: narf at devilix dot net
Reported by: jidanni at jidanni dot org
Summary: check all of command line for bad args
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: linux
PHP Version: 5.2.9
Block user comment: N
Private report: N
New Comment:
This is a duplicate of https://bugs.php.net/bug.php?id=40077
Previous Comments:
------------------------------------------------------------------------
[2009-03-02 05:22:44] jidanni at jidanni dot org
Description:
------------
Many command line arguments should print an error if there is unexpected junk abord:
$ php -l LocalSettings.php ZZZZZ
No syntax errors detected in LocalSettings.php
$ php -l ZZZZZ LocalSettings.php
Could not open input file: ZZZZZ
We see only the first argument is ever parsed.
There should be an error for the first line too.
-l is affected, and probably many other options are too.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47541&edit=1
Thread (3 messages)