summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/is_float_64bit.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/is_float_64bit.phpt')
-rw-r--r--ext/standard/tests/general_functions/is_float_64bit.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/standard/tests/general_functions/is_float_64bit.phpt b/ext/standard/tests/general_functions/is_float_64bit.phpt
index 05dd1c3a4a..13ebb67a79 100644
--- a/ext/standard/tests/general_functions/is_float_64bit.phpt
+++ b/ext/standard/tests/general_functions/is_float_64bit.phpt
@@ -9,11 +9,11 @@ precision=14
--FILE--
<?php
/* Prototype: bool is_float ( mixed $var );
- * Description: Finds whether the given variable is a float
- */
+ * Description: Finds whether the given variable is a float
+ */
echo "*** Testing is_float(), is_double() and is_real() with float values***\n";
-// different valid float vlaues
+// different valid float vlaues
$floats = array(
-2147483649, // float value
2147483648, // float value
@@ -65,7 +65,7 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// non_scalar values, objects, arrays, resources and boolean
+// non_scalar values, objects, arrays, resources and boolean
class foo
{
var $array = array(10.5);
@@ -74,7 +74,7 @@ $object = new foo();
$not_floats = array (
new foo, //object
- $object,
+ $object,
$fp, // resource
$dfp,
@@ -92,7 +92,7 @@ $not_floats = array (
TRUE,
false,
FALSE,
-
+
"", // strings
'',
"0",
@@ -105,7 +105,7 @@ $not_floats = array (
'1e5',
'1.5e6_string',
"1.5e6_string",
-
+
1, // integers, hex and octal
-1,
0,
@@ -114,11 +114,11 @@ $not_floats = array (
-0x673,
0123,
-0123,
-
+
@$unset_var, // unset variable
@$undefined_var
);
-/* loop through the $not_floats to see working of
+/* loop through the $not_floats to see working of
is_float(), is_double() & is_real() on objects,
arrays, boolean and others */
$loop_counter = 1;
@@ -135,11 +135,11 @@ var_dump( is_float() );
var_dump( is_double() );
var_dump( is_real() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_float( $floats[0], $floats[1]) );
var_dump( is_double( $floats[0], $floats[1]) );
var_dump( is_real( $floats[0], $floats[1]) );
-
+
echo "Done\n";
?>
--EXPECTF--