mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
c85f12e3ac
This reverts commit a7b3abe4e6
.
12 lines
229 B
PHP
12 lines
229 B
PHP
--TEST--
|
|
Bug #68938 (json_decode() decodes empty string without indicating error)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("json")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
json_decode("");
|
|
var_dump(json_last_error());
|
|
?>
|
|
--EXPECT--
|
|
int(4)
|