return zend_compile_func_typecheck(result, args, IS_NULL TSRMLS_CC);
} else if (zend_string_equals_literal(lcname, "is_bool")) {
return zend_compile_func_typecheck(result, args, _IS_BOOL TSRMLS_CC);
- } else if (zend_string_equals_literal(lcname, "is_long")) {
+ } else if (zend_string_equals_literal(lcname, "is_long")
+ || zend_string_equals_literal(lcname, "is_int")
+ || zend_string_equals_literal(lcname, "is_integer")
+ ) {
return zend_compile_func_typecheck(result, args, IS_LONG TSRMLS_CC);
- } else if (zend_string_equals_literal(lcname, "is_float")) {
+ } else if (zend_string_equals_literal(lcname, "is_float")
+ || zend_string_equals_literal(lcname, "is_double")
+ || zend_string_equals_literal(lcname, "is_real")
+ ) {
return zend_compile_func_typecheck(result, args, IS_DOUBLE TSRMLS_CC);
} else if (zend_string_equals_literal(lcname, "is_string")) {
return zend_compile_func_typecheck(result, args, IS_STRING TSRMLS_CC);
/* }}} */
/* {{{ proto mixed call_user_func(mixed function_name [, mixed parmeter] [, mixed ...])
- Call a user function which is the first parameter */
+ Call a user function which is the first parameter
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(call_user_func)
{
zval retval;
/* }}} */
/* {{{ proto mixed call_user_func_array(string function_name, array parameters)
- Call a user function which is the first parameter with the arguments contained in array */
+ Call a user function which is the first parameter with the arguments contained in array
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(call_user_func_array)
{
zval *params, retval;
/* {{{ proto bool is_null(mixed var)
- Returns true if variable is null */
+ Returns true if variable is null
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
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 */
+ Returns true if variable is a resource
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_resource)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_RESOURCE);
/* }}} */
/* {{{ proto bool is_bool(mixed var)
- Returns true if variable is a boolean */
+ Returns true if variable is a boolean
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_bool)
{
zval *arg;
/* }}} */
/* {{{ proto bool is_long(mixed var)
- Returns true if variable is a long (integer) */
+ Returns true if variable is a long (integer)
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_long)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_LONG);
/* }}} */
/* {{{ proto bool is_float(mixed var)
- Returns true if variable is float point*/
+ Returns true if variable is float point
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_float)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_DOUBLE);
/* }}} */
/* {{{ proto bool is_string(mixed var)
- Returns true if variable is a string */
+ Returns true if variable is a string
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_string)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_STRING);
/* }}} */
/* {{{ proto bool is_array(mixed var)
- Returns true if variable is an array */
+ Returns true if variable is an array
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_array)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_ARRAY);
/* }}} */
/* {{{ proto bool is_object(mixed var)
- Returns true if variable is an object */
+ Returns true if variable is an object
+ Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
PHP_FUNCTION(is_object)
{
php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_OBJECT);