From 4a824eb8cb7fc1866dd793e8db6806aa860385ee Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Thu, 10 Feb 2000 15:51:50 +0000 Subject: [PATCH] @- Added NULL-support in gettype(). (Thies) --- ext/standard/basic_functions.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.50.1