bug64695.phpt 272 B

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