mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
12 lines
196 B
PHP
12 lines
196 B
PHP
--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
|