mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08:00
5459ed4c2f
Fixes oss-fuzz #41692
16 lines
314 B
PHP
16 lines
314 B
PHP
--TEST--
|
|
Autovivification of false to array with data clobbering by error handler
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($code, $msg) {
|
|
echo "Err: $msg\n";
|
|
$GLOBALS['a']='';
|
|
});
|
|
$a=[!'a'];
|
|
$a[0][$d]='b';
|
|
var_dump($a);
|
|
?>
|
|
--EXPECT--
|
|
Err: Automatic conversion of false to array is deprecated
|
|
string(0) ""
|