xref: /PHP-8.1/Zend/tests/str_offset_005.phpt (revision df434f05)
1--TEST--
2string offset 005 indirect string modification by error handler
3--FILE--
4<?php
5set_error_handler(function(){$GLOBALS['a']=8;});
6$a='a';
7var_dump($a[$b]);
8var_dump($a);
9?>
10--EXPECT--
11string(1) "a"
12int(8)
13