mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
22 lines
325 B
Plaintext
22 lines
325 B
Plaintext
|
--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"
|
||
|
}
|