1--TEST-- 2Bug #49866 (Making reference on string offsets crashes PHP) 3--FILE-- 4<?php 5$a = "string"; 6$b = &$a[1]; 7$b = "f"; 8echo $a; 9?> 10--EXPECTF-- 11Fatal error: Uncaught Error: Cannot create references to/from string offsets in %sbug49866.php:3 12Stack trace: 13#0 {main} 14 thrown in %sbug49866.php on line 3 15