Bug #78323 [Opn->Csd]: Code 0 is returned on invalid options
| From: | nikic@php.net | Date: | Mon, 27 Jan 2020 12:32:59 +0000 |
| Subject: | Bug #78323 [Opn->Csd]: Code 0 is returned on invalid options | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225140@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78323&edit=1
ID: 78323
Updated by: nikic@php.net
Reported by: grzegorz129 at gmail dot com
Summary: Code 0 is returned on invalid options
-Status: Open
+Status: Closed
Type: Bug
Package: CGI/CLI related
Operating System: Linux
PHP Version: 7.3.7
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ivan.mikheykin@flant.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fd08f062ae5a3c92bfc0345da7e83ab320046864
Log: Fix bug #78323: Code 0 is returned on invalid options
Previous Comments:
------------------------------------------------------------------------
[2019-07-23 14:12:25] pierre at pcservice dot co dot za
The following pull request has been associated:
Patch Name: Set CLI exit code to 1 when invalid parameters are passed
On GitHub: https://github.com/php/php-src/pull/4466
Patch: https://github.com/php/php-src/pull/4466.patch
------------------------------------------------------------------------
[2019-07-23 00:56:08] grzegorz129 at gmail dot com
Description:
------------
When running php with invalid option, e.g. "php --memory-limit=1G" instead "php
-dmemory-limit=1G" the PHP help is displayed and code 0 is returned.
Expected result:
----------------
Code different than 0 should be returned to avoid treating an obvious error as success.
Actual result:
--------------
Code of success is returned.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78323&edit=1