From: Anatol Belski Date: Thu, 12 Nov 2015 08:28:10 +0000 (+0100) Subject: add test for bug #70898 X-Git-Tag: php-7.0.1RC1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c4fd367835fac9dc4981bb1e8e8f6e7a612ecae;p=php add test for bug #70898 --- diff --git a/Zend/tests/bug70898.phpt b/Zend/tests/bug70898.phpt new file mode 100644 index 0000000000..6308ddc742 --- /dev/null +++ b/Zend/tests/bug70898.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #70895 null ptr deref and segfault with crafted calable +--FILE-- + +--EXPECTF-- +Warning: array_map() expects parameter 1 to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name in %sbug70898.php on line %d + +Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d + +Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d + +Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d + +Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d + +Warning: implode(): Argument must be an array in %sbug70898.php on line %d