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 /ext/exif | |
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 'ext/exif')
-rw-r--r-- | ext/exif/tests/float_cast_overflow.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/exif/tests/float_cast_overflow.phpt b/ext/exif/tests/float_cast_overflow.phpt index 112191437d..8f5893eb91 100644 --- a/ext/exif/tests/float_cast_overflow.phpt +++ b/ext/exif/tests/float_cast_overflow.phpt @@ -38,6 +38,6 @@ array(8) { ["ImageWidth"]=> int(1) ["ImageLength"]=> - float(-2.5961487387524E+33) + float(-2.5961487387524236E+33) } } |