summaryrefslogtreecommitdiff
path: root/Zend/tests/list_010.phpt
blob: a89ffda5cd9d636636b168c63c376d22c174d707 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Do not allow mixing [] and list()
--FILE--
<?php

list([$a]) = [[1]];
var_dump($a);

?>
--EXPECTF--
Fatal error: Cannot mix [] and list() in %s on line %d