xref: /php-src/Zend/tests/list/list_004.phpt (revision 275f63e7)
1--TEST--
2list() with array reference
3--FILE--
4<?php
5
6$arr = array(2, 1);
7$b =& $arr;
8
9list(,$a) = $b;
10
11var_dump($a, $b);
12
13?>
14--EXPECT--
15int(1)
16array(2) {
17  [0]=>
18  int(2)
19  [1]=>
20  int(1)
21}
22