mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
26 lines
349 B
PHP
26 lines
349 B
PHP
--TEST--
|
|
Bug #54238 (use-after-free in substr_replace())
|
|
--INI--
|
|
error_reporting=E_ALL&~E_NOTICE
|
|
--FILE--
|
|
<?php
|
|
$f = array(array('A', 'A'));
|
|
|
|
$z = substr_replace($f, $f, $f, 1);
|
|
var_dump($z, $f);
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
string(9) "AArrayray"
|
|
}
|
|
array(1) {
|
|
[0]=>
|
|
array(2) {
|
|
[0]=>
|
|
string(1) "A"
|
|
[1]=>
|
|
string(1) "A"
|
|
}
|
|
}
|