summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index ca00d8abed..dbb6e7cb54 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -309,6 +309,7 @@ function_entry basic_functions[] = {
PHP_FE(get_magic_quotes_gpc, NULL)
PHP_FE(get_magic_quotes_runtime, NULL)
+ PHP_FE(is_null, first_arg_allow_ref)
PHP_FE(is_resource, first_arg_allow_ref)
PHP_FE(is_bool, first_arg_allow_ref)
PHP_FE(is_long, first_arg_allow_ref)
@@ -1306,6 +1307,14 @@ void php_is_type(INTERNAL_FUNCTION_PARAMETERS,int type)
}
}
+/* {{{ proto bool is_null(mixed var)
+ Returns true if variable is null */
+PHP_FUNCTION(is_null)
+{
+ php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_NULL);
+}
+/* }}} */
+
/* {{{ proto bool is_resource(mixed var)
Returns true if variable is a resource */
PHP_FUNCTION(is_resource)