1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
archived-php-src/ext/gmp/tests/bug50175.phpt
T
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

21 lines
314 B
PHP

--TEST--
Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
--EXTENSIONS--
gmp
--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"
}