summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug64695.phpt
blob: 899259f4b48312106c9fde9981b17cdd242d7b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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