mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
20 lines
278 B
PHP
20 lines
278 B
PHP
--TEST--
|
|
complex cases of variable assignment - 003
|
|
--FILE--
|
|
<?php
|
|
|
|
$var = 0.213123123;
|
|
$var1 = &$var;
|
|
$var = $var[1];
|
|
|
|
var_dump($var);
|
|
var_dump($var1);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Trying to access array offset on value of type float in %s on line %d
|
|
NULL
|
|
NULL
|
|
Done
|