diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-06-04 23:51:32 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-06-04 23:51:32 +0000 |
| commit | 045b283a7d014deb38e7f8763d3ad098efce2afd (patch) | |
| tree | 90e78494a2de84373eea9a6baf7b43fa7a462317 /ext/json/tests/bug41567.phpt | |
| parent | bd7c9ebeb0bc767a2a84d24ebe554e029748764d (diff) | |
| download | php-git-045b283a7d014deb38e7f8763d3ad098efce2afd.tar.gz | |
Fixed bug #41567 (json_encode() double conversion is inconsistent with PHP).
Diffstat (limited to 'ext/json/tests/bug41567.phpt')
| -rw-r--r-- | ext/json/tests/bug41567.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/json/tests/bug41567.phpt b/ext/json/tests/bug41567.phpt new file mode 100644 index 0000000000..837c360a87 --- /dev/null +++ b/ext/json/tests/bug41567.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #41567 (json_encode() double conversion is inconsistent with PHP) +--FILE-- +<?php + +$a = json_encode(123456789.12345); +var_dump(json_decode($a)); + +echo "Done\n"; +?> +--EXPECT-- +float(123456789.12345) +Done |
