summaryrefslogtreecommitdiff
path: root/main/php_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_getopt.h')
-rw-r--r--main/php_getopt.h3
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