mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
(is_resource, is_bool) new functions
@- Added is_resource(), is_bool() functions. (Thies)
This commit is contained in:
parent
d3a39771c1
commit
ac997bb6c2
@ -278,6 +278,8 @@ function_entry basic_functions[] = {
|
||||
PHP_FE(get_magic_quotes_gpc, NULL)
|
||||
PHP_FE(get_magic_quotes_runtime, NULL)
|
||||
|
||||
PHP_FE(is_resource, first_arg_allow_ref)
|
||||
PHP_FE(is_bool, first_arg_allow_ref)
|
||||
PHP_FE(is_long, first_arg_allow_ref)
|
||||
PHP_FALIAS(is_int, is_long, first_arg_allow_ref)
|
||||
PHP_FALIAS(is_integer, is_long, first_arg_allow_ref)
|
||||
@ -1525,6 +1527,16 @@ void php3_is_type(INTERNAL_FUNCTION_PARAMETERS,int type)
|
||||
}
|
||||
|
||||
|
||||
PHP_FUNCTION(is_resource)
|
||||
{
|
||||
php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_RESOURCE);
|
||||
}
|
||||
|
||||
PHP_FUNCTION(is_bool)
|
||||
{
|
||||
php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_BOOL);
|
||||
}
|
||||
|
||||
PHP_FUNCTION(is_long)
|
||||
{
|
||||
php3_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_LONG);
|
||||
|
@ -86,6 +86,8 @@ PHP_FUNCTION(get_magic_quotes_runtime);
|
||||
PHP_FUNCTION(get_magic_quotes_gpc);
|
||||
|
||||
void php3_is_type(INTERNAL_FUNCTION_PARAMETERS, int type);
|
||||
PHP_FUNCTION(is_resource);
|
||||
PHP_FUNCTION(is_bool);
|
||||
PHP_FUNCTION(is_long);
|
||||
PHP_FUNCTION(is_double);
|
||||
PHP_FUNCTION(is_string);
|
||||
|
Loading…
Reference in New Issue
Block a user