xref: /PHP-5.3/Zend/tests/bug62005.phpt (revision 3332943c)
1--TEST--
2Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
3--FILE--
4<?php
5function add_points($player, $points) {
6    $player->energy += $points;
7    print_r($player);
8}
9add_points(NULL, 2);
10--EXPECTF--
11Strict Standards: Creating default object from empty value in %sbug62005.php on line %d
12stdClass Object
13(
14    [energy] => 2
15)
16