exception_during_property_assign_op.phpt   [plain text]


--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) {
}