]> granicus.if.org Git - php/commitdiff
@- Added NULL-support in gettype(). (Thies)
authorThies C. Arntzen <thies@php.net>
Thu, 10 Feb 2000 15:51:50 +0000 (15:51 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 10 Feb 2000 15:51:50 +0000 (15:51 +0000)
ext/standard/basic_functions.c

index 05c0768731208521cecd0c0c01fd2784c9ef85b4..53204b665fea0b1252390c183c8eec248aeb18db 100644 (file)
@@ -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;