xref: /PHP-7.1/Zend/tests/str_offset_002.phpt (revision 3f72c77c)
1--TEST--
2string offset 002
3--FILE--
4<?php
5$a = "aaa";
6$x = array(&$a[1]);
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Cannot create references to/from string offsets in %sstr_offset_002.php:3
10Stack trace:
11#0 {main}
12  thrown in %sstr_offset_002.php on line 3
13