xref: /PHP-8.1/Zend/tests/assign_to_var_003.phpt (revision 2f92957f)
1--TEST--
2complex cases of variable assignment - 003
3--FILE--
4<?php
5
6$var = 0.213123123;
7$var1 = &$var;
8$var = $var[1];
9
10var_dump($var);
11var_dump($var1);
12
13echo "Done\n";
14?>
15--EXPECTF--
16Warning: Trying to access array offset on value of type float in %s on line %d
17NULL
18NULL
19Done
20