mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
25 lines
207 B
PHP
25 lines
207 B
PHP
--TEST--
|
|
list() with non-array
|
|
--FILE--
|
|
<?php
|
|
|
|
list($a) = NULL;
|
|
|
|
list($b) = 1;
|
|
|
|
list($c) = 1.;
|
|
|
|
list($d) = 'foo';
|
|
|
|
list($e) = print '';
|
|
|
|
var_dump($a, $b, $c, $d, $e);
|
|
|
|
?>
|
|
--EXPECT--
|
|
NULL
|
|
NULL
|
|
NULL
|
|
NULL
|
|
NULL
|