mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
17 lines
455 B
PHP
17 lines
455 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 or null, function "0000000000000000000000000000000000" not found or invalid function name
|