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

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

update php

File size: 215 bytes
Line 
1--TEST--
2list with by-reference assignment should fail
3--FILE--
4<?php
5
6$a = [1];
7[&$foo] = $a;
8$foo = 2;
9
10var_dump($a);
11
12?>
13--EXPECTF--
14Fatal error: [] and list() assignments cannot be by reference in %s on line %d
Note: See TracBrowser for help on using the repository browser.