xref: /PHP-7.4/Zend/tests/bug68118.phpt (revision 782352c5)
1--TEST--
2Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined
3--FILE--
4<?php
5
6set_error_handler(function() {
7    $obj = new stdClass;
8    $obj->test = 'meow';
9    return true;
10});
11
12$a = new stdClass;
13$a->undefined .= 'test';
14var_dump($a);
15
16?>
17--EXPECT--
18object(stdClass)#2 (1) {
19  ["undefined"]=>
20  string(4) "test"
21}
22