Req #47541 [Opn->Dup]: check all of command line for bad args
| From: | requinix@php.net | Date: | Sat, 05 May 2018 19:56:12 +0000 |
| Subject: | Req #47541 [Opn->Dup]: check all of command line for bad args | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215092@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47541&edit=1
ID: 47541
Updated by: requinix@php.net
Reported by: jidanni at jidanni dot org
Summary: check all of command line for bad args
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: linux
PHP Version: 5.2.9
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2017-01-23 13:33:20] narf at devilix dot net
This is a duplicate of https://bugs.php.net/bug.php?id=40077
------------------------------------------------------------------------
[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