]> granicus.if.org Git - php/commitdiff
You can't detect NULL nicely - false is better and more PHPish.
authorSander Roobol <sander@php.net>
Sun, 6 Oct 2002 17:00:33 +0000 (17:00 +0000)
committerSander Roobol <sander@php.net>
Sun, 6 Oct 2002 17:00:33 +0000 (17:00 +0000)
ext/standard/basic_functions.c

index 376e626b03ff69d9efb8cb692df782c6e684729d..69017e8b06d66484150d9f071510d7d07ebea6e0 100644 (file)
@@ -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. */