mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
e208cb23c6
This gets rid of most false returns Closes GH-5882
17 lines
323 B
PHP
17 lines
323 B
PHP
--TEST--
|
|
Bug #66872: Crash when passing string to gmp_testbit
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("gmp")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
var_dump(gmp_testbit("abc", 1));
|
|
} catch (\TypeError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
gmp_testbit(): Argument #1 ($a) is not an integer string
|