diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-27 13:32:51 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-27 13:32:51 +0100 |
| commit | 16f194c75e05381628ae2b9468fb8004dec9e176 (patch) | |
| tree | fe16599af39275ddff3d73781daf9cbf59a0fd25 /main/php_getopt.h | |
| parent | 3f6779879cf7a293541ea10cd2852c9f45cbe73f (diff) | |
| parent | 1cccbb8ff1339c44075e7dee8613d98dc8056f68 (diff) | |
| download | php-git-16f194c75e05381628ae2b9468fb8004dec9e176.tar.gz | |
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix bug #78323: Code 0 is returned on invalid options
Diffstat (limited to 'main/php_getopt.h')
| -rw-r--r-- | main/php_getopt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_getopt.h b/main/php_getopt.h index 960def30b5..c68d3969c4 100644 --- a/main/php_getopt.h +++ b/main/php_getopt.h @@ -33,4 +33,7 @@ extern PHPAPI int php_optidx; PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start); END_EXTERN_C() +/* php_getopt will return this value if there is an error in arguments */ +#define PHP_GETOPT_INVALID_ARG (-2) + #endif |
