diff options
| author | Sander Roobol <sander@php.net> | 2002-10-06 17:00:33 +0000 |
|---|---|---|
| committer | Sander Roobol <sander@php.net> | 2002-10-06 17:00:33 +0000 |
| commit | af14a8e75f40c20f5c8f0ba29d121f2b286559bf (patch) | |
| tree | f189188f146b6045cd5b1529ef596cd44031b077 | |
| parent | d940131774818a31457b9fd04de5b3c51501542e (diff) | |
| download | php-git-af14a8e75f40c20f5c8f0ba29d121f2b286559bf.tar.gz | |
You can't detect NULL nicely - false is better and more PHPish.
| -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. */ |
