mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
21 lines
314 B
PHP
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"
|
|
}
|