File size: 281 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | --TEST--
Bug #66872: Crash when passing string to gmp_testbit
--EXTENSIONS--
gmp
--FILE--
<?php
try {
var_dump(gmp_testbit("abc", 1));
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
gmp_testbit(): Argument #1 ($num) is not an integer string
|