Your IP : 216.73.216.48


Current Path : /hdd/hdd12/install/php/php-7.4.32/Zend/tests/
Upload File :
Current File : //hdd/hdd12/install/php/php-7.4.32/Zend/tests/assign_ref_func_leak.phpt

--TEST--
Assigning the result of a non-reference function by-reference should not leak
--FILE--
<?php

function func() {
    return [0];
}

$x = $y =& func();
var_dump($x, $y);

?>
--EXPECTF--
Notice: Only variables should be assigned by reference in %s on line %d
array(1) {
  [0]=>
  int(0)
}
array(1) {
  [0]=>
  int(0)
}