Bug #78323 [PATCH]: Code 0 is returned on invalid options

From: Date: Tue, 23 Jul 2019 14:12:25 +0000
Subject: Bug #78323 [PATCH]: Code 0 is returned on invalid options
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221910@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 Patch added by: pierre@pcservice.co.za Reported by: grzegorz129 at gmail dot com Summary: Code 0 is returned on invalid options Status: Open Type: Bug Package: CGI/CLI related Operating System: Linux PHP Version: 7.3.7 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#221910) next »