mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d30cd7d7e7
Closes GH-5590
17 lines
447 B
PHP
17 lines
447 B
PHP
--TEST--
|
|
Bug #70895 null ptr deref and segfault with crafted callable
|
|
--FILE--
|
|
<?php
|
|
function m($f,$a){
|
|
return array_map($f,0);
|
|
}
|
|
|
|
try {
|
|
echo implode(m("",m("",m("",m("",m("0000000000000000000000000000000000",("")))))));
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
array_map(): Argument #1 ($callback) must be a valid callback, function "0000000000000000000000000000000000" not found or invalid function name
|