blob: 7fbc0d80287fc9ff2ece54eb17a8561e6e2cdef3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
Bug #49866 (Making reference on string offsets crashes PHP)
--FILE--
<?php
$a = "string";
$b = &$a[1];
$b = "f";
echo $a;
--EXPECTF--
Fatal error: Cannot create references to/from string offsets nor overloaded objects in %sbug49866.php on line 3
|