1--TEST--
2String offset error during list() by-ref assignment
3--FILE--
4<?php
5
6$a = [0];
7$v = 'b';
8$i = 0;
9list(&$a[$i++]) = $v;
10
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Cannot create references to/from string offsets in %s:%d
14Stack trace:
15#0 {main}
16  thrown in %s on line %d
17