return zend_compile_func_typecheck(result, args, IS_LONG);
} 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);
} else if (zend_string_equals_literal(lcname, "is_string")) {
PHP_FALIAS(is_integer, is_int, arginfo_is_int)
PHP_FALIAS(is_long, is_int, arginfo_is_int)
PHP_FALIAS(is_double, is_float, arginfo_is_float)
- PHP_FALIAS(is_real, is_float, arginfo_is_float)
+ PHP_DEP_FALIAS(is_real, is_float, arginfo_is_float)
PHP_FE(is_numeric, arginfo_is_numeric)
PHP_FE(is_string, arginfo_is_string)
PHP_FE(is_array, arginfo_is_array)
echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_float($float) );
var_dump( is_double($float) );
- var_dump( is_real($float) );
+ var_dump( @is_real($float) );
}
echo "\n*** Testing is_float(), is_double() & is_real() with non float values ***\n";
echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_float($value) );
var_dump( is_double($value) );
- var_dump( is_real($value) );
+ var_dump( @is_real($value) );
}
echo "\n*** Testing error conditions ***\n";
Warning: is_double() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
+Deprecated: Function is_real() is deprecated in %s on line %d
+
Warning: is_real() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
Warning: is_double() expects exactly 1 parameter, 2 given in %s on line %d
bool(false)
+Deprecated: Function is_real() is deprecated in %s on line %d
+
Warning: is_real() expects exactly 1 parameter, 2 given in %s on line %d
bool(false)
Done
echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_float($float) );
var_dump( is_double($float) );
- var_dump( is_real($float) );
+ var_dump( @is_real($float) );
}
echo "\n*** Testing is_float(), is_double() & is_real() with non float values ***\n";
echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_float($value) );
var_dump( is_double($value) );
- var_dump( is_real($value) );
+ var_dump( @is_real($value) );
}
echo "\n*** Testing error conditions ***\n";
Warning: is_double() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
+Deprecated: Function is_real() is deprecated in %s on line %d
+
Warning: is_real() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
Warning: is_double() expects exactly 1 parameter, 2 given in %s on line %d
bool(false)
+Deprecated: Function is_real() is deprecated in %s on line %d
+
Warning: is_real() expects exactly 1 parameter, 2 given in %s on line %d
bool(false)
Done