php-src/Zend/tests/exception_during_property_assign_op.phpt
2015-05-17 13:46:54 +02:00

22 lines
313 B
PHP

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