summaryrefslogtreecommitdiff
path: root/Zend/tests/bug68118.phpt
blob: c56e70a112dd37e2669916428a05841848f8fe7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined
--FILE--
<?php

set_error_handler(function() {
    $obj = new stdClass;
    $obj->test = 'meow';
    return true;
});
 
$a = new stdClass;
$a->undefined .= 'test';
var_dump($a);

?>
--EXPECT--
object(stdClass)#2 (1) {
  ["undefined"]=>
  string(4) "test"
}