diff options
author | Stanislav Malyshev <stas@php.net> | 2015-01-14 16:12:35 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-01-14 16:12:35 -0800 |
commit | 7f95aa4d97b6a687f7b4565157b934610d354f43 (patch) | |
tree | 2819bdda529a604a99443f9aa320694ad85f3b35 /ext/json/tests | |
parent | c7c62303fba833895466a28488d048266666dfe0 (diff) | |
download | php-git-7f95aa4d97b6a687f7b4565157b934610d354f43.tar.gz |
Fix bug #68817: Null pointer deference
Diffstat (limited to 'ext/json/tests')
-rw-r--r-- | ext/json/tests/bug68817.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/json/tests/bug68817.phpt b/ext/json/tests/bug68817.phpt new file mode 100644 index 0000000000..aa9a63f93d --- /dev/null +++ b/ext/json/tests/bug68817.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #68817 (Null pointer deference) +--SKIPIF-- +<?php if (!extension_loaded("json")) print "skip"; ?> +--FILE-- +<?php + +var_dump(json_decode('[""]')); + +?> +===DONE=== +--EXPECTF-- +array(1) { + [0]=> + string(0) "" +} +===DONE=== |