xref: /PHP-5.6/Zend/tests/bug49866.phpt (revision 6ab5f53d)
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--EXPECTF--
10Fatal error: Cannot create references to/from string offsets nor overloaded objects in %sbug49866.php on line 3
11