blob: 33a8b87f1aa5a8c629fb352e387895cd0b80e0e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--
$this in foreach
--FILE--
<?php
$a = [[1]];
foreach ($a as list($this)) {
var_dump($this);
}
?>
--EXPECTF--
Fatal error: Cannot re-assign $this in %sthis_in_foreach_004.php on line 3
|