summaryrefslogtreecommitdiff
path: root/ext/json/tests
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2015-02-22 20:54:05 +0000
committerJakub Zelenka <bukka@php.net>2015-02-22 20:54:05 +0000
commitad2b751985a9f812c1a1e21455b33d2af58d9cd0 (patch)
tree3a06ceb03bdc63b49a37dc72daa020132cb90ae4 /ext/json/tests
parent485345a7f19f87dc8e932f2666a999850c9c7243 (diff)
parent97d809a8a57cb7bc5833917d9e4eeddad749b53b (diff)
downloadphp-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.phpt14
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