summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-06-22 21:37:43 +0000
committerThies C. Arntzen <thies@php.net>1999-06-22 21:37:43 +0000
commit18962f1993c3a7837c8295da96016c50aa1e443d (patch)
treede83a33e8ca28d09d0078b6b0e057ba20db2a353
parentc471c77c58ee37f9e69bdc8ac79d7fa6f78ef1f3 (diff)
downloadphp-git-18962f1993c3a7837c8295da96016c50aa1e443d.tar.gz
gettype now reports "boolean" correct
-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 0bbb11afb0..6c044e9a42 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1245,6 +1245,9 @@ PHP_FUNCTION(gettype)
WRONG_PARAM_COUNT;
}
switch (arg->type) {
+ case IS_BOOL:
+ RETVAL_STRING("boolean",1);
+ break;
case IS_LONG:
RETVAL_STRING("integer",1);
break;