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