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

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

update php

File size: 202 bytes
Line 
1--TEST--
2Cannot destructure using array(), even if nested
3--FILE--
4<?php
5
6[array($a)] = [array(42)];
7var_dump($a);
8
9?>
10--EXPECTF--
11Fatal error: Cannot assign to array(), use [] instead in %s on line %d
Note: See TracBrowser for help on using the repository browser.