2015-11-12 16:28:10 +08:00
--TEST--
2015-11-12 20:37:45 +08:00
Bug #70895 null ptr deref and segfault with crafted callable
2015-11-12 16:28:10 +08:00
--FILE--
2018-09-17 01:16:42 +08:00
<?php
2019-02-20 00:11:00 +08:00
function m($f,$a){
return array_map($f,0);
}
2015-11-12 16:28:10 +08:00
2019-02-20 00:11:00 +08:00
try {
echo implode(m("",m("",m("",m("",m("0000000000000000000000000000000000",("")))))));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
2015-11-12 16:28:10 +08:00
?>
2019-02-20 00:11:00 +08:00
--EXPECT--
2021-02-25 00:12:32 +08:00
array_map(): Argument #1 ($callback) must be a valid callback or null, function "0000000000000000000000000000000000" not found or invalid function name