From af14a8e75f40c20f5c8f0ba29d121f2b286559bf Mon Sep 17 00:00:00 2001 From: Sander Roobol Date: Sun, 6 Oct 2002 17:00:33 +0000 Subject: You can't detect NULL nicely - false is better and more PHPish. --- ext/standard/basic_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/basic_functions.c') 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. */ -- cgit v1.2.1