--TEST-- GMP operator overloading does not support non-numeric strings --EXTENSIONS-- gmp --FILE-- getMessage(), PHP_EOL; } try { var_dump($num - "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num * "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num / "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num % "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num ** "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num | "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num & "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num ^ "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num << "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { var_dump($num >> "string"); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } ?> --EXPECT-- ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string ValueError: Number is not an integer string