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

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

update php

File size: 249 bytes
Line 
1--TEST--
2Cannot use empty elements in keyed array destructuring
3--FILE--
4<?php
5
6$array = ['a' => 1, 'b' => 2];
7['a' => $a, , 'b' => $b] = $array;
8
9?>
10--EXPECTF--
11Fatal error: Cannot use empty array entries in keyed array assignment in %s on line %d
Note: See TracBrowser for help on using the repository browser.