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

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

update php

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