TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
433 B
27 lines
433 B
--TEST--
|
|
Bug #22592 (Cascading assignments to strings with curly braces broken)
|
|
--FILE--
|
|
<?php
|
|
$wrong = $correct = 'abcdef';
|
|
|
|
$t = $x[] = 'x';
|
|
|
|
var_dump($correct);
|
|
var_dump($wrong);
|
|
|
|
$correct[1] = '*';
|
|
$correct[3] = '*';
|
|
$correct[5] = '*';
|
|
|
|
// This produces the
|
|
$wrong[1] = $wrong[3] = $wrong[5] = '*';
|
|
|
|
var_dump($correct);
|
|
var_dump($wrong);
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(6) "abcdef"
|
|
string(6) "abcdef"
|
|
string(6) "a*c*e*"
|
|
string(6) "a*c*e*"
|
|
|