1--TEST--
2BcMath\Number calc undefined var by operator
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7$num = new BcMath\Number(100);
8
9try {
10    $num + null;
11} catch (Error $e) {
12    echo $e->getMessage() . "\n";
13}
14
15try {
16    $num - null;
17} catch (Error $e) {
18    echo $e->getMessage() . "\n";
19}
20
21try {
22    $num * null;
23} catch (Error $e) {
24    echo $e->getMessage() . "\n";
25}
26
27try {
28    $num / null;
29} catch (Error $e) {
30    echo $e->getMessage() . "\n";
31}
32
33try {
34    $num % null;
35} catch (Error $e) {
36    echo $e->getMessage() . "\n";
37}
38
39try {
40    $num ** null;
41} catch (Error $e) {
42    echo $e->getMessage() . "\n";
43}
44?>
45--EXPECT--
46Unsupported operand types: BcMath\Number + null
47Unsupported operand types: BcMath\Number - null
48Unsupported operand types: BcMath\Number * null
49Unsupported operand types: BcMath\Number / null
50Unsupported operand types: BcMath\Number % null
51Unsupported operand types: BcMath\Number ** null
52