1--TEST--
2WeakReference object handlers
3--FILE--
4<?php
5$wr = WeakReference::create(new stdClass);
6
7try {
8	$wr->disallow;
9} catch (Error $ex) {
10	var_dump($ex->getMessage());
11}
12
13try {
14	$wr->disallow = "writes";
15} catch (Error $ex) {
16	var_dump($ex->getMessage());
17}
18
19try {
20	isset($wr->disallow);
21} catch (Error $ex) {
22	var_dump($ex->getMessage());
23}
24
25try {
26	unset($wr->disallow);
27} catch (Error $ex) {
28	var_dump($ex->getMessage());
29}
30
31try {
32	$disallow = &$wr->disallowed;
33} catch (Error $ex) {
34	var_dump($ex->getMessage());
35}
36?>
37--EXPECT--
38string(47) "WeakReference objects do not support properties"
39string(47) "WeakReference objects do not support properties"
40string(47) "WeakReference objects do not support properties"
41string(47) "WeakReference objects do not support properties"
42string(56) "WeakReference objects do not support property references"
43
44