mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
09547c64c2
In some cases new code requires two reallocations insead of one. Fixes oss-fuzz #31716, #36196, #39739 and #40002
17 lines
319 B
PHP
17 lines
319 B
PHP
--TEST--
|
|
string offset 006 indirect string modification by error handler
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($code, $msg) {
|
|
echo "Err: $msg\n";
|
|
$GLOBALS['a']=null;
|
|
});
|
|
$a[$y]=$a.=($y);
|
|
var_dump($a);
|
|
?>
|
|
--EXPECT--
|
|
Err: Undefined variable $y
|
|
Err: Undefined variable $y
|
|
Err: String offset cast occurred
|
|
NULL
|