mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix bug #80018: Tolerate var_dump() printing floats in exponential notation in tests
This commit is contained in:
parent
5f4b169be8
commit
c8093fe94a
11 changed files with 49 additions and 49 deletions
|
@ -50,7 +50,7 @@ float(1)
|
||||||
float(0)
|
float(0)
|
||||||
float(1)
|
float(1)
|
||||||
float(0)
|
float(0)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Notice: Object of class test could not be converted to float in %s on line %d
|
Notice: Object of class test could not be converted to float in %s on line %d
|
||||||
float(1)
|
float(1)
|
||||||
|
|
|
@ -50,7 +50,7 @@ float(1)
|
||||||
float(0)
|
float(0)
|
||||||
float(1)
|
float(1)
|
||||||
float(0)
|
float(0)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Notice: Object of class test could not be converted to float in %s on line %d
|
Notice: Object of class test could not be converted to float in %s on line %d
|
||||||
float(1)
|
float(1)
|
||||||
|
|
|
@ -30,8 +30,8 @@ bool(false)
|
||||||
|
|
||||||
Warning: disk_total_space(): No such file or directory in %s on line %d
|
Warning: disk_total_space(): No such file or directory in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Warning: disk_free_space(): No such file or directory in %s on line %d
|
Warning: disk_free_space(): No such file or directory in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
|
@ -50,18 +50,18 @@ rmdir($file_path."/disk_free_space");
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing with existing directory ***
|
*** Testing with existing directory ***
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
*** Testing with newly created directory ***
|
*** Testing with newly created directory ***
|
||||||
|
|
||||||
Free Space before writing to a file
|
Free Space before writing to a file
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Free Space after writing to a file
|
Free Space after writing to a file
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Free Space Value Is Correct
|
Free Space Value Is Correct
|
||||||
*** Testing with Binary Input ***
|
*** Testing with Binary Input ***
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
--- Done ---
|
--- Done ---
|
||||||
|
|
|
@ -35,7 +35,7 @@ bool(false)
|
||||||
|
|
||||||
Warning: diskfreespace(): No such file or directory in %s on line %d
|
Warning: diskfreespace(): No such file or directory in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Done --
|
-- Done --
|
||||||
|
|
|
@ -63,44 +63,44 @@ rmdir($file_path."/disk_free_space_variation");
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing with a directory ***
|
*** Testing with a directory ***
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Testing for the return type ***
|
Testing for the return type ***
|
||||||
bool(true)
|
bool(true)
|
||||||
|
|
||||||
*** Testing with different directory combinations ***
|
*** Testing with different directory combinations ***
|
||||||
-- Iteration 1 --
|
-- Iteration 1 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 2 --
|
-- Iteration 2 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 3 --
|
-- Iteration 3 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 4 --
|
-- Iteration 4 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 5 --
|
-- Iteration 5 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 6 --
|
-- Iteration 6 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 7 --
|
-- Iteration 7 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 8 --
|
-- Iteration 8 --
|
||||||
float(%d)
|
float(%f)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 9 --
|
-- Iteration 9 --
|
||||||
disk_free_space(): Argument #1 ($directory) must be a valid path, string given
|
disk_free_space(): Argument #1 ($directory) must be a valid path, string given
|
||||||
|
|
|
@ -32,11 +32,11 @@ rmdir($file_path."/disk_total_space");
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing with normal directory ***
|
*** Testing with normal directory ***
|
||||||
float(%d)
|
float(%f)
|
||||||
*** Testing with newly created directory ***
|
*** Testing with newly created directory ***
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Total Space after writing to a file
|
Total Space after writing to a file
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Done --
|
-- Done --
|
||||||
|
|
|
@ -31,6 +31,6 @@ unlink($file_path."/disk_total_space.tmp");
|
||||||
|
|
||||||
Warning: disk_total_space(): No such file or directory in %s on line %d
|
Warning: disk_total_space(): No such file or directory in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
--- Done ---
|
--- Done ---
|
||||||
|
|
|
@ -64,35 +64,35 @@ rmdir($file_path."/disk_total_space");
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
*** Testing with a directory ***
|
*** Testing with a directory ***
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
Testing for the return type ***
|
Testing for the return type ***
|
||||||
bool(true)
|
bool(true)
|
||||||
|
|
||||||
*** Testing with different directory combinations ***
|
*** Testing with different directory combinations ***
|
||||||
-- Iteration 1 --
|
-- Iteration 1 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 2 --
|
-- Iteration 2 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 3 --
|
-- Iteration 3 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 4 --
|
-- Iteration 4 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 5 --
|
-- Iteration 5 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 6 --
|
-- Iteration 6 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 7 --
|
-- Iteration 7 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 8 --
|
-- Iteration 8 --
|
||||||
float(%d)
|
float(%f)
|
||||||
|
|
||||||
-- Iteration 9 --
|
-- Iteration 9 --
|
||||||
disk_total_space(): Argument #1 ($directory) must be a valid path, string given
|
disk_total_space(): Argument #1 ($directory) must be a valid path, string given
|
||||||
|
|
|
@ -348,11 +348,11 @@ float(0)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 12 --
|
-- Iteration 12 --
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 13 --
|
-- Iteration 13 --
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 14 --
|
-- Iteration 14 --
|
||||||
8: Object of class point could not be converted to float
|
8: Object of class point could not be converted to float
|
||||||
|
@ -407,11 +407,11 @@ float(0)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 12 --
|
-- Iteration 12 --
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 13 --
|
-- Iteration 13 --
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
string(6) "double"
|
string(6) "double"
|
||||||
-- Iteration 14 --
|
-- Iteration 14 --
|
||||||
8: Object of class point could not be converted to float
|
8: Object of class point could not be converted to float
|
||||||
|
|
|
@ -132,12 +132,12 @@ float(0)
|
||||||
bool(true)
|
bool(true)
|
||||||
float(0)
|
float(0)
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
string(56) "Object of class stdClass could not be converted to float"
|
string(56) "Object of class stdClass could not be converted to float"
|
||||||
bool(true)
|
bool(true)
|
||||||
float(%d)
|
float(%f)
|
||||||
bool(true)
|
bool(true)
|
||||||
bool(true)
|
bool(true)
|
||||||
bool(true)
|
bool(true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue