diff options
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 376e626b03..69017e8b06 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1442,7 +1442,7 @@ PHP_FUNCTION(getopt) if (optarg != NULL) { ZVAL_STRING(val, optarg, 1); } else { - ZVAL_NULL(val); + ZVAL_FALSE(val); } /* Add this option / argument pair to the result hash. */ |
