mirror of
https://github.com/php/php-src.git
synced 2024-12-24 17:30:48 +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
|