bug64695.phpt 337 B

1234567891011121314
  1. --TEST--
  2. Bug #64695 JSON_NUMERIC_CHECK has issues with strings that are numbers plus the letter e
  3. --SKIPIF--
  4. <?php if (!extension_loaded("json")) print "skip"; ?>
  5. --FILE--
  6. <?php
  7. $t = array('test' => '123343e871700');
  8. var_dump(json_encode($t, JSON_NUMERIC_CHECK));
  9. echo "Done\n";
  10. ?>
  11. --EXPECT--
  12. string(24) "{"test":"123343e871700"}"
  13. Done