1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 02:23:18 +02:00
Files
archived-php-src/Zend/tests/objects_034.phpt
Dmitry Stogov 8d7d87cdc4 Add test
2021-12-03 13:40:17 +03:00

28 lines
305 B
PHP

--TEST--
Array object clobbering by user error handler
--FILE--
<?php
class A {
}
set_error_handler(function () {
$GLOBALS['a'] = null;
});
$a = new A;
$a[$c] = 'x' ;
var_dump($a);
$a = new A;
$a[$c] .= 'x' ;
var_dump($a);
$a = new A;
$a[$c][$c] = 'x' ;
var_dump($a);
?>
--EXPECT--
NULL
NULL
NULL