mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
12 lines
164 B
Plaintext
12 lines
164 B
Plaintext
|
--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
|