1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/gmp/tests/bug50175.phpt
T
2018-02-03 13:54:34 +01:00

21 lines
383 B
PHP

--TEST--
Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--FILE--
<?php
var_dump(gmp_init('0bcd', 16));
var_dump(gmp_init('0xyz', 36));
?>
--EXPECTF--
object(GMP)#%d (1) {
["num"]=>
string(4) "3021"
}
object(GMP)#%d (1) {
["num"]=>
string(5) "44027"
}