diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-12 10:27:28 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-25 09:51:32 +0100 |
commit | a9398056417d27cb1754cdb846411c695d3afe10 (patch) | |
tree | 1cdab35caacdf491977aeaf4159a72ef976cdae6 /Zend/tests/add_005.phpt | |
parent | c3aa9132d67364d52e4da79081c3e9823be7ae45 (diff) | |
download | php-git-a9398056417d27cb1754cdb846411c695d3afe10.tar.gz |
Use serialize_precision for var_dump()
var_dump() is debugging functionality, so it should print
floating-point numbers accurately. We do this by switching
to serialize_precision, which (by default) will print with
as much precision as necessary to preserve the exact value
of the float.
This also affects debug_zval_dump().
Closes GH-5172.
Diffstat (limited to 'Zend/tests/add_005.phpt')
-rw-r--r-- | Zend/tests/add_005.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/add_005.phpt b/Zend/tests/add_005.phpt index f5c20124cc..6981d7656f 100644 --- a/Zend/tests/add_005.phpt +++ b/Zend/tests/add_005.phpt @@ -17,6 +17,6 @@ var_dump($c); echo "Done\n"; ?> --EXPECT-- -float(2834756759.1231) -float(2834756759.1231) +float(2834756759.123123) +float(2834756759.123123) Done |