php-src/Zend/tests/falsetoarray_002.phpt
2021-12-06 13:08:27 +03:00

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) ""