php-src/Zend/tests/list_010.phpt
2016-05-20 01:51:05 +02:00

12 lines
164 B
PHP

--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