]> granicus.if.org Git - php/commit
Fix bug #78323: Code 0 is returned on invalid options
authorIvan Mikheykin <ivan.mikheykin@flant.com>
Fri, 17 Jan 2020 19:26:35 +0000 (22:26 +0300)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 27 Jan 2020 12:32:19 +0000 (13:32 +0100)
commitfd08f062ae5a3c92bfc0345da7e83ab320046864
tree23ca98cfd88487284bfbf3536ad7d4c62c47008b
parentb836d9cdc161c10d7c4b4eeb50ab123725967893
Fix bug #78323: Code 0 is returned on invalid options

Set CLI exit code to 1 when invalid parameters are passed,
and print error to stderr.
NEWS
ext/standard/basic_functions.c
main/getopt.c
main/php_getopt.h
sapi/cgi/cgi_main.c
sapi/cgi/tests/bug78323.phpt [new file with mode: 0644]
sapi/cli/php_cli.c
sapi/cli/tests/015.phpt
sapi/cli/tests/bug78323.phpt [new file with mode: 0644]
sapi/fpm/fpm/fpm_main.c
sapi/fpm/tests/bug78323.phpt [new file with mode: 0644]