--TEST-- Test pow() with gmp object --SKIPIF-- --FILE-- getMessage() . "\n"; } try { $n ** -10; } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } ?> --EXPECTF-- object(GMP)#%d (1) { ["num"]=> string(4) "1024" } object(GMP)#%d (1) { ["num"]=> string(4) "1024" } Exponent must be greater than or equal to 0 Exponent must be greater than or equal to 0