php-src/Zend/tests/bug68118.phpt

22 lines
324 B
Plaintext
Raw Normal View History

2014-10-03 19:24:28 +00:00
--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;
});
2018-09-16 17:16:42 +00:00
2014-10-03 19:24:28 +00:00
$a = new stdClass;
$a->undefined .= 'test';
var_dump($a);
?>
--EXPECT--
object(stdClass)#2 (1) {
["undefined"]=>
string(4) "test"
}