diff --git a/ext/gmp/tests/gmp_pow_fpe.phpt b/ext/gmp/tests/gmp_pow_fpe.phpt index d564853799c8..591107467f38 100644 --- a/ext/gmp/tests/gmp_pow_fpe.phpt +++ b/ext/gmp/tests/gmp_pow_fpe.phpt @@ -6,15 +6,17 @@ gmp ---EXPECTF-- -object(GMP)#2 (1) { - ["num"]=> - string(%d) "%s" +try { + gmp_pow($g, PHP_INT_MAX); +} catch (\ValueError $e) { + echo $e->getMessage() . PHP_EOL; } -object(GMP)#2 (1) { - ["num"]=> - string(%d) "%s" +try { + gmp_pow(256, PHP_INT_MAX); +} catch (\ValueError $e) { + echo $e->getMessage(); } +?> +--EXPECT-- +base and exponent overflow +base and exponent overflow