xref: /PHP-7.4/Zend/tests/bug70182.phpt (revision 9e246a73)
1--TEST--
2Bug #70182 ($string[] assignment with +=)
3--FILE--
4<?php
5
6$str = "abc";
7$str[] += $str;
8
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: [] operator not supported for strings in %sbug70182.php:%d
12Stack trace:
13#0 {main}
14  thrown in %sbug70182.php on line %d
15