1--TEST--
2BcMath\Number properties unknown
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7
8$num = new BcMath\Number(1);
9
10var_dump($num->foo);
11
12try {
13    $num->foo = 1;
14} catch (Error $e) {
15    echo $e->getMessage() . "\n";
16}
17
18var_dump($num->foo);
19
20try {
21    $num->bar = 1;
22} catch (Error $e) {
23    echo $e->getMessage() . "\n";
24}
25
26var_dump(isset($num->foo));
27?>
28--EXPECTF--
29Warning: Undefined property: BcMath\Number::$foo in %s
30NULL
31Cannot create dynamic property BcMath\Number::$foo
32
33Warning: Undefined property: BcMath\Number::$foo in %s
34NULL
35Cannot create dynamic property BcMath\Number::$bar
36bool(false)
37