Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
gmp /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
002.phpt
2.78
KB
-rw-rw-r--
2022-10-31 11:36
003.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
bug32773.phpt
543
B
-rw-rw-r--
2022-10-31 11:36
bug50175.phpt
383
B
-rw-rw-r--
2022-10-31 11:36
bug50283.phpt
1.67
KB
-rw-rw-r--
2022-10-31 11:36
bug52906.phpt
700
B
-rw-rw-r--
2022-10-31 11:36
bug659967.phpt
257
B
-rw-rw-r--
2022-10-31 11:36
bug66872.phpt
305
B
-rw-rw-r--
2022-10-31 11:36
bug67917.phpt
389
B
-rw-rw-r--
2022-10-31 11:36
bug69803.phpt
457
B
-rw-rw-r--
2022-10-31 11:36
bug70284.phpt
866
B
-rw-rw-r--
2022-10-31 11:36
bug74670.phpt
271
B
-rw-rw-r--
2022-10-31 11:36
cast.phpt
391
B
-rw-rw-r--
2022-10-31 11:36
clone.phpt
323
B
-rw-rw-r--
2022-10-31 11:36
comparison.phpt
514
B
-rw-rw-r--
2022-10-31 11:36
gmp_abs.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
gmp_and.phpt
1.41
KB
-rw-rw-r--
2022-10-31 11:36
gmp_binomial.phpt
1.38
KB
-rw-rw-r--
2022-10-31 11:36
gmp_clrbit.phpt
1.24
KB
-rw-rw-r--
2022-10-31 11:36
gmp_cmp.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
gmp_com.phpt
1.14
KB
-rw-rw-r--
2022-10-31 11:36
gmp_div_q.phpt
1.59
KB
-rw-rw-r--
2022-10-31 11:36
gmp_div_qr.phpt
2.7
KB
-rw-rw-r--
2022-10-31 11:36
gmp_div_r.phpt
1.63
KB
-rw-rw-r--
2022-10-31 11:36
gmp_divexact.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
gmp_export.phpt
3.02
KB
-rw-rw-r--
2022-10-31 11:36
gmp_fact.phpt
1.65
KB
-rw-rw-r--
2022-10-31 11:36
gmp_gcd.phpt
1.23
KB
-rw-rw-r--
2022-10-31 11:36
gmp_gcdext.phpt
1.54
KB
-rw-rw-r--
2022-10-31 11:36
gmp_hamdist.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
gmp_import.phpt
3.27
KB
-rw-rw-r--
2022-10-31 11:36
gmp_init.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
gmp_intval.phpt
815
B
-rw-rw-r--
2022-10-31 11:36
gmp_invert.phpt
1.43
KB
-rw-rw-r--
2022-10-31 11:36
gmp_jacobi.phpt
1.53
KB
-rw-rw-r--
2022-10-31 11:36
gmp_kronecker.phpt
636
B
-rw-rw-r--
2022-10-31 11:36
gmp_lcm.phpt
735
B
-rw-rw-r--
2022-10-31 11:36
gmp_legendre.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
gmp_mod.phpt
1005
B
-rw-rw-r--
2022-10-31 11:36
gmp_neg.phpt
999
B
-rw-rw-r--
2022-10-31 11:36
gmp_nextprime.phpt
973
B
-rw-rw-r--
2022-10-31 11:36
gmp_or.phpt
1.41
KB
-rw-rw-r--
2022-10-31 11:36
gmp_perfect_power.phpt
834
B
-rw-rw-r--
2022-10-31 11:36
gmp_perfect_square.phpt
1003
B
-rw-rw-r--
2022-10-31 11:36
gmp_php_int_max.phpt
557
B
-rw-rw-r--
2022-10-31 11:36
gmp_popcount.phpt
675
B
-rw-rw-r--
2022-10-31 11:36
gmp_pow.phpt
1.67
KB
-rw-rw-r--
2022-10-31 11:36
gmp_pown.phpt
2.02
KB
-rw-rw-r--
2022-10-31 11:36
gmp_prob_prime.phpt
1.26
KB
-rw-rw-r--
2022-10-31 11:36
gmp_random.phpt
1.56
KB
-rw-rw-r--
2022-10-31 11:36
gmp_random_bits.phpt
946
B
-rw-rw-r--
2022-10-31 11:36
gmp_random_range.phpt
1.86
KB
-rw-rw-r--
2022-10-31 11:36
gmp_random_seed-32bit.phpt
10.13
KB
-rw-rw-r--
2022-10-31 11:36
gmp_random_seed.phpt
12.47
KB
-rw-rw-r--
2022-10-31 11:36
gmp_remroot.phpt
1.63
KB
-rw-rw-r--
2022-10-31 11:36
gmp_root.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
gmp_scan0.phpt
884
B
-rw-rw-r--
2022-10-31 11:36
gmp_scan1.phpt
884
B
-rw-rw-r--
2022-10-31 11:36
gmp_setbit.phpt
1.35
KB
-rw-rw-r--
2022-10-31 11:36
gmp_setbit_long.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
gmp_sign.phpt
986
B
-rw-rw-r--
2022-10-31 11:36
gmp_sqrt.phpt
1.17
KB
-rw-rw-r--
2022-10-31 11:36
gmp_sqrtrem.phpt
1.67
KB
-rw-rw-r--
2022-10-31 11:36
gmp_strval.phpt
2.31
KB
-rw-rw-r--
2022-10-31 11:36
gmp_sub.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
gmp_testbit.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
gmp_xor.phpt
1.43
KB
-rw-rw-r--
2022-10-31 11:36
overloading.phpt
4.33
KB
-rw-rw-r--
2022-10-31 11:36
serialize.phpt
825
B
-rw-rw-r--
2022-10-31 11:36
unserialize_with_reference.phpt
332
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- gmp_import() basic tests --SKIPIF-- <?php if (!extension_loaded("gmp")) echo "skip"; ?> --FILE-- <?php // Tests taken from GMPs own test suite. // format is [expected, size, options, input] $import = [ ['0',1,GMP_BIG_ENDIAN,''], ['12345678',1,GMP_BIG_ENDIAN,'12345678'], ['12345678',4,GMP_BIG_ENDIAN,'12345678'], ['12345678',4,GMP_LSW_FIRST | GMP_BIG_ENDIAN,'12345678'], ['12345678',1,GMP_LSW_FIRST | GMP_LITTLE_ENDIAN,'78563412'], ['12345678',4,GMP_LITTLE_ENDIAN,'78563412'], ['12345678',4,GMP_LSW_FIRST | GMP_LITTLE_ENDIAN,'78563412'], ['123456789abc',2,GMP_BIG_ENDIAN,'123456789abc'], ['123456789abc',2,GMP_LSW_FIRST | GMP_BIG_ENDIAN,'9abc56781234'], ['123456789abc',2,GMP_LITTLE_ENDIAN,'34127856bc9a'], ['123456789abc',2,GMP_LSW_FIRST | GMP_LITTLE_ENDIAN,'bc9a78563412'], ['112233445566778899aabbcc',4,GMP_BIG_ENDIAN,'112233445566778899aabbcc'], ['112233445566778899aabbcc',4,GMP_LSW_FIRST | GMP_BIG_ENDIAN,'99aabbcc5566778811223344'], ['112233445566778899aabbcc',4,GMP_LITTLE_ENDIAN,'4433221188776655ccbbaa99'], ['112233445566778899aabbcc',4,GMP_LSW_FIRST | GMP_LITTLE_ENDIAN,'ccbbaa998877665544332211'], ['100120023003400450056006700780089009a00ab00bc00c',8,GMP_BIG_ENDIAN,'100120023003400450056006700780089009a00ab00bc00c'], ['100120023003400450056006700780089009a00ab00bc00c',8,GMP_LSW_FIRST | GMP_BIG_ENDIAN,'9009a00ab00bc00c50056006700780081001200230034004'], ['100120023003400450056006700780089009a00ab00bc00c',8,GMP_LITTLE_ENDIAN,'044003300220011008800770066005500cc00bb00aa00990'], ['100120023003400450056006700780089009a00ab00bc00c',8,GMP_LSW_FIRST | GMP_LITTLE_ENDIAN,'0cc00bb00aa0099008800770066005500440033002200110'] ]; $passed = true; foreach ($import as $k => $test) { $gmp = gmp_import(hex2bin($test[3]), $test[1], $test[2]); if ($gmp instanceof GMP) { $result = gmp_strval($gmp, 16); if ($result !== $test[0]) { echo "$k: '$result' !== '{$test[0]}'\n"; $passed = false; } } else { $type = gettype($gmp); echo "$k: $type !== '{$test[0]}'\n"; } } var_dump($passed); // Invalid arguments (zpp failure) var_dump(gmp_import()); // Invalid word sizes var_dump(gmp_import('a', -1)); var_dump(gmp_import('a', 0)); // Invalid data lengths var_dump(gmp_import('a', 2)); var_dump(gmp_import('aa', 3)); var_dump(gmp_import(str_repeat('a', 100), 64)); // Invalid options var_dump(gmp_import('a', 1, GMP_MSW_FIRST | GMP_LSW_FIRST)); var_dump(gmp_import('a', 1, GMP_BIG_ENDIAN | GMP_LITTLE_ENDIAN)); --EXPECTF-- bool(true) Warning: gmp_import() expects at least 1 parameter, 0 given in %s on line %d NULL Warning: gmp_import(): Word size must be positive, -1 given in %s on line %d bool(false) Warning: gmp_import(): Word size must be positive, 0 given in %s on line %d bool(false) Warning: gmp_import(): Input length must be a multiple of word size in %s on line %d bool(false) Warning: gmp_import(): Input length must be a multiple of word size in %s on line %d bool(false) Warning: gmp_import(): Input length must be a multiple of word size in %s on line %d bool(false) Warning: gmp_import(): Invalid options: Conflicting word orders in %s on line %d bool(false) Warning: gmp_import(): Invalid options: Conflicting word endianness in %s on line %d bool(false)