--TEST-- BcMath\Number calc non-numeric string by operator --EXTENSIONS-- bcmath --FILE-- getMessage() . "\n"; } try { $num - 'a'; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num * 'a'; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num / 'a'; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num % 'a'; } catch (Error $e) { echo $e->getMessage() . "\n"; } try { $num ** 'a'; } catch (Error $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- Right string operand cannot be converted to BcMath\Number Right string operand cannot be converted to BcMath\Number Right string operand cannot be converted to BcMath\Number Right string operand cannot be converted to BcMath\Number Right string operand cannot be converted to BcMath\Number Right string operand cannot be converted to BcMath\Number