1--TEST--
2BcMath\Number properties write error
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7
8$num = new BcMath\Number(1);
9try {
10    $num->value = 1;
11} catch (Error $e) {
12    echo $e->getMessage() . "\n";
13}
14
15try {
16    $num->scale = 1;
17} catch (Error $e) {
18    echo $e->getMessage() . "\n";
19}
20?>
21--EXPECT--
22Cannot modify readonly property BcMath\Number::$value
23Cannot modify readonly property BcMath\Number::$scale
24