mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
14 lines
232 B
PHP
14 lines
232 B
PHP
--TEST--
|
|
Assign coalesce: "$a[0] ??= $a" should evaluate the right $a first
|
|
--FILE--
|
|
<?php
|
|
$a[0] ??= $a;
|
|
var_dump($a);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $a in %sassign_coalesce_007.php on line 2
|
|
array(1) {
|
|
[0]=>
|
|
NULL
|
|
}
|