php-src/ext/json/tests/bug68817.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

18 lines
230 B
PHP

--TEST--
Bug #68817 (Null pointer deference)
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
<?php
var_dump(json_decode('[""]'));
?>
===DONE===
--EXPECT--
array(1) {
[0]=>
string(0) ""
}
===DONE===