Req #47541 [Com]: check all of command line for bad args

From: Date: Mon, 23 Jan 2017 13:33:22 +0000
Subject: Req #47541 [Com]: check all of command line for bad args
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206886@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
 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)

« previous php.bugs (#206886) next »