diff options
author | Jakub Zelenka <bukka@php.net> | 2015-02-22 20:54:05 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2015-02-22 20:54:05 +0000 |
commit | ad2b751985a9f812c1a1e21455b33d2af58d9cd0 (patch) | |
tree | 3a06ceb03bdc63b49a37dc72daa020132cb90ae4 /ext/json/tests | |
parent | 485345a7f19f87dc8e932f2666a999850c9c7243 (diff) | |
parent | 97d809a8a57cb7bc5833917d9e4eeddad749b53b (diff) | |
download | php-git-ad2b751985a9f812c1a1e21455b33d2af58d9cd0.tar.gz |
Merge branch 'PHP-5.6'
The fix for master is a bit different (it's fixed in encoder)
Diffstat (limited to 'ext/json/tests')
-rw-r--r-- | ext/json/tests/bug64695.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/json/tests/bug64695.phpt b/ext/json/tests/bug64695.phpt new file mode 100644 index 0000000000..899259f4b4 --- /dev/null +++ b/ext/json/tests/bug64695.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #64695 JSON_NUMERIC_CHECK has issues with strings that are numbers plus the letter e +--SKIPIF-- +<?php if (!extension_loaded("json")) print "skip"; ?> +--FILE-- +<?php +$t = array('test' => '123343e871700'); +var_dump(json_encode($t, JSON_NUMERIC_CHECK)); + +echo "Done\n"; +?> +--EXPECT-- +string(24) "{"test":"123343e871700"}" +Done |