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