mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
These are no longer needed after https://wiki.php.net/rfc/always_enable_json Closes GH-5637
14 lines
294 B
PHP
14 lines
294 B
PHP
--TEST--
|
|
Bug #62010 (json_decode produces invalid byte-sequences)
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(json_decode('"\ud834"'));
|
|
var_dump(json_last_error() === JSON_ERROR_UTF16);
|
|
var_dump(json_last_error_msg());
|
|
?>
|
|
--EXPECT--
|
|
NULL
|
|
bool(true)
|
|
string(50) "Single unpaired UTF-16 surrogate in unicode escape"
|