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