mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
22 lines
313 B
PHP
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) {
|
|
}
|