From 9c4fd367835fac9dc4981bb1e8e8f6e7a612ecae Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 12 Nov 2015 09:28:10 +0100 Subject: [PATCH] add test for bug #70898 --- Zend/tests/bug70898.phpt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Zend/tests/bug70898.phpt 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 -- 2.40.0