TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
417 B

--TEST--
Bug #54238 (use-after-free in substr_replace())
--FILE--
<?php
$f = array(array('A', 'A'));
$z = substr_replace($f, $f, $f, 1);
var_dump($z, $f);
?>
--EXPECTF--
Warning: Array to string conversion in %s on line %d
Warning: Array to string conversion in %s on line %d
array(1) {
[0]=>
string(9) "AArrayray"
}
array(1) {
[0]=>
array(2) {
[0]=>
string(1) "A"
[1]=>
string(1) "A"
}
}