--TEST-- BcMath\Number calc undefined var by operator --EXTENSIONS-- bcmath --FILE-- getMessage() . "\n"; } try { $num - null; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num * null; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num / null; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num % null; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num ** null; } catch (Error $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- Unsupported operand types: BcMath\Number + null Unsupported operand types: BcMath\Number - null Unsupported operand types: BcMath\Number * null Unsupported operand types: BcMath\Number / null Unsupported operand types: BcMath\Number % null Unsupported operand types: BcMath\Number ** null