php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #47541 check all of command line for bad args
Submitted: 2009-03-02 05:22 UTC Modified: 2018-05-05 19:56 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: jidanni at jidanni dot org Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 5.2.9 OS: linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jidanni at jidanni dot org
New email:
PHP Version: OS:

 

 [2009-03-02 05:22 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-23 13:33 UTC] narf at devilix dot net
This is a duplicate of https://bugs.php.net/bug.php?id=40077
 [2018-05-05 19:56 UTC] requinix@php.net
-Status: Open +Status: Duplicate -Package: Feature/Change Request +Package: *General Issues
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC