php-src/Zend/tests/str_offset_005.phpt
2021-11-30 16:07:38 +03:00

13 lines
212 B
PHP

--TEST--
string offset 005 indirect string modification by error handler
--FILE--
<?php
set_error_handler(function(){$GLOBALS['a']=8;});
$a='a';
var_dump($a[$b]);
var_dump($a);
?>
--EXPECT--
string(1) "a"
int(8)