summaryrefslogtreecommitdiff
path: root/ext/gmp/tests/bug66872.phpt
blob: 434af30b81b41688d6c9300a8e4437ef3264dfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #66872: Crash when passing string to gmp_testbit
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--FILE--
<?php

var_dump(gmp_testbit("abc", 1));

?>
--EXPECTF--
Warning: gmp_testbit(): Unable to convert variable to GMP - string is not an integer in %s on line %d
bool(false)