mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
@- Added NULL-support in gettype(). (Thies)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user