source: src/router/php7/Zend/tests/this_in_foreach_004.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 193 bytes
Line 
1--TEST--
2$this in foreach
3--FILE--
4<?php
5$a = [[1]];
6foreach ($a as list($this)) {
7        var_dump($this);
8}
9?>
10--EXPECTF--
11Fatal error: Cannot re-assign $this in %sthis_in_foreach_004.php on line 3
Note: See TracBrowser for help on using the repository browser.