summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_during_property_assign_op.phpt
blob: 0c4c5d098d70150e06d288278950ad0ab3f1e07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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) {
}