summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-02-10 15:51:50 +0000
committerThies C. Arntzen <thies@php.net>2000-02-10 15:51:50 +0000
commit4a824eb8cb7fc1866dd793e8db6806aa860385ee (patch)
tree35c4f53087ad46ed5fa19b979669063f03b9bffa
parent992e808451faa8351586468093bb71f4061fd902 (diff)
downloadphp-git-4a824eb8cb7fc1866dd793e8db6806aa860385ee.tar.gz
@- Added NULL-support in gettype(). (Thies)
-rw-r--r--ext/standard/basic_functions.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 05c0768731..53204b665f 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -715,6 +715,9 @@ PHP_FUNCTION(gettype)
WRONG_PARAM_COUNT;
}
switch ((*arg)->type) {
+ case IS_NULL:
+ RETVAL_STRING("NULL",1);
+ break;
case IS_BOOL:
RETVAL_STRING("boolean",1);
break;