mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
12 lines
164 B
PHP
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
|