mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
11a9b036a8
In case of auto-vivification we were fetching dim twice and as such also emitting the undef var warning twice.
18 lines
291 B
PHP
18 lines
291 B
PHP
--TEST--
|
|
Compound array assign with undefined variables
|
|
--FILE--
|
|
<?php
|
|
$a[$b] += 1;
|
|
var_dump($a);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $a in %s on line %d
|
|
|
|
Warning: Undefined variable $b in %s on line %d
|
|
|
|
Warning: Undefined array key "" in %s on line %d
|
|
array(1) {
|
|
[""]=>
|
|
int(1)
|
|
}
|