--TEST--
Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
--FILE--
<?php
function add_points($player$points) {
    
$player->energy += $points;
    
print_r($player);
}
add_points(NULL2);
--
EXPECTF--
WarningCreating default object from empty value in %sbug62005.php on line %d
stdClass Object
(
    [
energy] => 2
)