1--TEST--
2Hooked properties cannot be unset
3--FILE--
4<?php
5
6class Test {
7    public $prop {
8        get { return $this->prop; }
9        set { $this->prop = $value; }
10    }
11
12    public function __unset($name) {
13        echo "Never reached\n";
14    }
15}
16
17$test = new Test;
18$test->prop = 42;
19try {
20    unset($test->prop);
21} catch (Error $e) {
22    echo $e->getMessage(), "\n";
23}
24var_dump($test->prop);
25
26?>
27--EXPECT--
28Cannot unset hooked property Test::$prop
29int(42)
30