diff options
author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:37:48 -0400 |
---|---|---|
committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:37:48 -0400 |
commit | eddbbea4325e602ddc87c545531609132d4f0e3b (patch) | |
tree | f0994206a7e0a6251be7cc6729ba480f0c8729c2 /ext/gmp | |
parent | 2d4e5b09576bb4f0ba716cc82cdf29ea04d9184b (diff) | |
download | php-eddbbea4325e602ddc87c545531609132d4f0e3b.tar.gz |
Imported Upstream version 5.2.3upstream/5.2.3
Diffstat (limited to 'ext/gmp')
31 files changed, 66 insertions, 3 deletions
diff --git a/ext/gmp/tests/001.phpt b/ext/gmp/tests/001.phpt index 382d374cb..5126f7314 100644 --- a/ext/gmp/tests/001.phpt +++ b/ext/gmp/tests/001.phpt @@ -18,4 +18,4 @@ echo "gmp extension is available"; */ ?> --EXPECT-- -gmp extension is available
\ No newline at end of file +gmp extension is available diff --git a/ext/gmp/tests/011.phpt b/ext/gmp/tests/011.phpt index ec5d24f3f..0ca3ca384 100644 --- a/ext/gmp/tests/011.phpt +++ b/ext/gmp/tests/011.phpt @@ -1,5 +1,12 @@ --TEST-- -gmp_divexact() tests (OK to fail with GMP =< 4.2.1) +gmp_divexact() tests +--SKIPIF-- +<?php +if (!extension_loaded("gmp")) die ("skip"); +if (!defined('GMP_VERSION') || version_compare("4.2.1", GMP_VERSION, ">=")) { + die("skip your GMP is too old and will crash"); +} +?> --FILE-- <?php diff --git a/ext/gmp/tests/012.phpt b/ext/gmp/tests/012.phpt index ff60385bb..a8de91598 100644 --- a/ext/gmp/tests/012.phpt +++ b/ext/gmp/tests/012.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_neg() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/013.phpt b/ext/gmp/tests/013.phpt index b576d4448..8d6e1d0d5 100644 --- a/ext/gmp/tests/013.phpt +++ b/ext/gmp/tests/013.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_abs() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/014.phpt b/ext/gmp/tests/014.phpt index 850574865..f52c32cdb 100644 --- a/ext/gmp/tests/014.phpt +++ b/ext/gmp/tests/014.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_fact() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/015.phpt b/ext/gmp/tests/015.phpt index 2eea93a97..98ae349b5 100644 --- a/ext/gmp/tests/015.phpt +++ b/ext/gmp/tests/015.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_pow() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/016.phpt b/ext/gmp/tests/016.phpt index 6f63b28a0..6bd3afd07 100644 --- a/ext/gmp/tests/016.phpt +++ b/ext/gmp/tests/016.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_powm() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/017.phpt b/ext/gmp/tests/017.phpt index 4254a07ae..8349862b7 100644 --- a/ext/gmp/tests/017.phpt +++ b/ext/gmp/tests/017.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_sqrt() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/018.phpt b/ext/gmp/tests/018.phpt index 9aeff6597..c8146cf95 100644 --- a/ext/gmp/tests/018.phpt +++ b/ext/gmp/tests/018.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_sqrtrem() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/019.phpt b/ext/gmp/tests/019.phpt index d632d1400..10bca880b 100644 --- a/ext/gmp/tests/019.phpt +++ b/ext/gmp/tests/019.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_perfect_square() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/020.phpt b/ext/gmp/tests/020.phpt index 37c3ebdc6..c689ec552 100644 --- a/ext/gmp/tests/020.phpt +++ b/ext/gmp/tests/020.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_prob_prime() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/021.phpt b/ext/gmp/tests/021.phpt index 48d8291ae..01b4d1cd6 100644 --- a/ext/gmp/tests/021.phpt +++ b/ext/gmp/tests/021.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_gcd() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/022.phpt b/ext/gmp/tests/022.phpt index 0df874dc7..cfa919bf6 100644 --- a/ext/gmp/tests/022.phpt +++ b/ext/gmp/tests/022.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_gcdext() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/023.phpt b/ext/gmp/tests/023.phpt index 59d1592cb..a7cc9a7a8 100644 --- a/ext/gmp/tests/023.phpt +++ b/ext/gmp/tests/023.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_invert() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/024.phpt b/ext/gmp/tests/024.phpt index 4f9a369c9..9b46d9483 100644 --- a/ext/gmp/tests/024.phpt +++ b/ext/gmp/tests/024.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_jacobi() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/025.phpt b/ext/gmp/tests/025.phpt index db01a4c13..99ac184df 100644 --- a/ext/gmp/tests/025.phpt +++ b/ext/gmp/tests/025.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_legendre() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/026.phpt b/ext/gmp/tests/026.phpt index 39c18501f..d95262287 100644 --- a/ext/gmp/tests/026.phpt +++ b/ext/gmp/tests/026.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_cmp() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/027.phpt b/ext/gmp/tests/027.phpt index b22fa2ac0..d4fee571f 100644 --- a/ext/gmp/tests/027.phpt +++ b/ext/gmp/tests/027.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_sign() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/028.phpt b/ext/gmp/tests/028.phpt index 95f910ab4..a61a39a07 100644 --- a/ext/gmp/tests/028.phpt +++ b/ext/gmp/tests/028.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_random() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/029.phpt b/ext/gmp/tests/029.phpt index b49ae2842..0846ad135 100644 --- a/ext/gmp/tests/029.phpt +++ b/ext/gmp/tests/029.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_and() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/030.phpt b/ext/gmp/tests/030.phpt index 116630bca..86c5caeea 100644 --- a/ext/gmp/tests/030.phpt +++ b/ext/gmp/tests/030.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_or() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/031.phpt b/ext/gmp/tests/031.phpt index fc8a56143..80a7ff89c 100644 --- a/ext/gmp/tests/031.phpt +++ b/ext/gmp/tests/031.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_com() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/032.phpt b/ext/gmp/tests/032.phpt index 5cca14063..4f426aac1 100644 --- a/ext/gmp/tests/032.phpt +++ b/ext/gmp/tests/032.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_xor() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/033.phpt b/ext/gmp/tests/033.phpt index 070ff0ef2..ea5cc5da7 100644 --- a/ext/gmp/tests/033.phpt +++ b/ext/gmp/tests/033.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_setbit() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/034.phpt b/ext/gmp/tests/034.phpt index b3f65547f..1614c0016 100644 --- a/ext/gmp/tests/034.phpt +++ b/ext/gmp/tests/034.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_clrbit() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/035.phpt b/ext/gmp/tests/035.phpt index 81410b5c7..a9b0c1a33 100644 --- a/ext/gmp/tests/035.phpt +++ b/ext/gmp/tests/035.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_popcount() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/036.phpt b/ext/gmp/tests/036.phpt index 2d429c40a..fa2d67c82 100644 --- a/ext/gmp/tests/036.phpt +++ b/ext/gmp/tests/036.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_hamdist() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/037.phpt b/ext/gmp/tests/037.phpt index 90ba3558d..478904302 100644 --- a/ext/gmp/tests/037.phpt +++ b/ext/gmp/tests/037.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_scan0() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/038.phpt b/ext/gmp/tests/038.phpt index c4764faff..b278c2586 100644 --- a/ext/gmp/tests/038.phpt +++ b/ext/gmp/tests/038.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_scan1() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/039.phpt b/ext/gmp/tests/039.phpt index 9a4edb541..3f373a84f 100644 --- a/ext/gmp/tests/039.phpt +++ b/ext/gmp/tests/039.phpt @@ -1,5 +1,7 @@ --TEST-- gmp_init() basic tests +--SKIPIF-- +<?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php diff --git a/ext/gmp/tests/bug32773.phpt b/ext/gmp/tests/bug32773.phpt index feb9d8d75..6823fa1a1 100644 --- a/ext/gmp/tests/bug32773.phpt +++ b/ext/gmp/tests/bug32773.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #32773 binary GMP functions returns unexpected value, when second parameter is int(0) +Bug #32773 (binary GMP functions returns unexpected value, when second parameter is int(0)) --SKIPIF-- <?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- |