xref: /php-src/Zend/tests/falsetoarray_002.phpt (revision 5459ed4c)
1--TEST--
2Autovivification of false to array with data clobbering by error handler
3--FILE--
4<?php
5set_error_handler(function($code, $msg) {
6    echo "Err: $msg\n";
7    $GLOBALS['a']='';
8});
9$a=[!'a'];
10$a[0][$d]='b';
11var_dump($a);
12?>
13--EXPECT--
14Err: Automatic conversion of false to array is deprecated
15string(0) ""
16