mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
22 lines
313 B
Plaintext
22 lines
313 B
Plaintext
|
--TEST--
|
||
|
Exception during read part of compound assignment operation on a property
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Test {
|
||
|
public function __get($name) {
|
||
|
throw new Exception;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$test = new Test;
|
||
|
try {
|
||
|
$test->prop += 42;
|
||
|
} catch (Exception $e) {}
|
||
|
var_dump($test);
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
object(Test)#1 (0) {
|
||
|
}
|