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

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

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