mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
15 lines
262 B
PHP
15 lines
262 B
PHP
--TEST--
|
|
Bug #70182 ($string[] assignment with +=)
|
|
--FILE--
|
|
<?php
|
|
|
|
$str = "abc";
|
|
$str[] += $str;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: [] operator not supported for strings in %sbug70182.php:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug70182.php on line %d
|