php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/gmp/tests/ |
| files >> //proc/self/root/var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/gmp/tests/003.phpt |
--TEST--
Check for number base recognition
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--FILE--
<?php
/* Binary */
$test[] = gmp_init("0b10011010010");
$test[] = gmp_init("0b10011010010", 2);
$test[] = gmp_init("10011010010");
$test[] = gmp_init("10011010010", 2);
/* Octal */
$test[] = gmp_init("02322");
$test[] = gmp_init("02322", 8);
$test[] = gmp_init("2322");
$test[] = gmp_init("2322", 8);
/* Decimal */
$test[] = gmp_init("1234");
$test[] = gmp_init("1234", 10);
/* Hexidecimal */
$test[] = gmp_init("0x4d2");
$test[] = gmp_init("0x4d2", 16);
$test[] = gmp_init("4d2");
$test[] = gmp_init("4d2", 16);
for ($i = 0; $i < count($test); $i++) {
printf("%s\n", gmp_strval($test[$i]));
}
?>
--EXPECTF--
Warning: gmp_init(): Unable to convert variable to GMP - string is not an integer in %s on line %d
1234
1234
10011010010
1234
1234
1234
2322
1234
1234
1234
1234
1234
0
1234
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`