1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Migrate skip checks to --EXTENSIONS--, p3

For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
This commit is contained in:
Max Semenik
2021-04-01 15:16:17 +03:00
committed by Nikita Popov
parent 33f938bad0
commit e9f783fcdd
566 changed files with 1177 additions and 1181 deletions

View File

@@ -1,9 +1,8 @@
--TEST--
FTP login
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,11 @@
--TEST--
FTP login (SSL)
--EXTENSIONS--
ftp
pcntl
openssl
--SKIPIF--
<?php
$ssl = 1;
require 'skipif.inc';
if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
?>
--FILE--

View File

@@ -1,9 +1,8 @@
--TEST--
FTP cwd
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
FTP with bogus parameters
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
FTP with bogus server responses
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bogus = 1;

View File

@@ -3,10 +3,9 @@ FTP with bogus resource
--CREDITS--
Michael Paul da Rosa <michael [at] michaelpaul [dot] com [dot] br>
PHP TestFest Dublin 2017
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$ftp = tmpfile();

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #27809 (ftp_systype returns null)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug27809=true;

View File

@@ -1,9 +1,11 @@
--TEST--
Bug #37799 (ftp_ssl_connect() falls back to non-ssl connection)
--EXTENSIONS--
ftp
pcntl
openssl
--SKIPIF--
<?php
$ssl = 1;
require 'skipif.inc';
if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
?>
--FILE--

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #39458 (ftp_nlist() returns false on empty directories (other server behaviour))
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug39458=1;

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #39458 (ftp_nlist() returns false on empty directories)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #39583 (FTP always transfers in binary mode)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #39583 (FTP always transfers in binary mode)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug39583=1;

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #7216 (ftp_mkdir returns nothing (2))
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
Bug #7216 (ftp_mkdir returns nothing)
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug7216=true;

View File

@@ -1,8 +1,8 @@
--TEST--
Attempt to use a closed FTPConnection
--SKIPIF--
<?php
require 'skipif.inc';
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,8 +1,10 @@
--TEST--
Verify php can handle filesizes >32bit
--EXTENSIONS--
ftp
pcntl
--SKIPIF--
<?php
require 'skipif.inc';
if (2147483647 == PHP_INT_MAX) {
die('skip 64-bit only');
}

View File

@@ -3,10 +3,9 @@ Testing ftp_alloc returns true
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_alloc returns true
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
ftp_append() create new file and append something
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_chmod returns file mode
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,8 +1,8 @@
--TEST--
Attempt to instantiate an FTPConnection directly
--SKIPIF--
<?php
require 'skipif.inc';
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php

View File

@@ -4,8 +4,9 @@ Testing ftp_delete basic functionality
Gabriel Caruso (carusogabriel34@gmail.com)
Contributed by Ward Cappelle <wardcappelle@gmail.com>
User Group: PHP-WVL & PHPGent #PHPTestFest
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_exec returns true
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,10 +2,9 @@
FTP ftp_fget file for both binary and ASCII transfer modes
--CREDITS--
Nathaniel McHugh
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_fget ignore autoresume if autoseek is switched off
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_fget autoresume
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_fget resume parameter
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_fput basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,10 +2,9 @@
FTP ftp_get file for both binary and ASCII transfer modes
--CREDITS--
Nathaniel McHugh
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_get_option basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,10 +2,9 @@
Test the File Modification Time as described in http://tools.ietf.org/html/rfc3659#section-3.1
--CREDITS--
Nathaniel McHugh
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php

View File

@@ -1,9 +1,8 @@
--TEST--
ftp_mlsd() return parsed lines
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
ftp_mlsd() must not return false on empty directories
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,10 +2,9 @@
Testing ftp_mlsd returns false on server error
--CREDITS--
Andreas Treichel <gmblar+github [at] gmail [dot] com>
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
Testing whether ftp_nb_continue() fetches more data
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_nb_fget ignore autoresume if autoseek is switched off
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_nb_fget autoresume
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_nb_fget resume parameter
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_nb_fput basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,8 +1,10 @@
--TEST--
Testing ftp_nb_fget can handle large files incl. resume
--EXTENSIONS--
ftp
pcntl
--SKIPIF--
<?php
require 'skipif.inc';
if (2147483647 == PHP_INT_MAX) {
die('skip ot supported on this system');
}

View File

@@ -2,8 +2,9 @@
Testing ftp_nb_put basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_pasv basic funcionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_rawlist basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_rawlist returns false on server error
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,8 @@
--TEST--
FTP basic ftp_rename calls
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -3,10 +3,9 @@ Testing ftp_rmdir returns true
--CREDITS--
Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
require 'skipif.inc';
?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_set_option basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
Testing ftp_set_option errors while setting up
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -2,8 +2,9 @@
ftp_site function basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php require 'skipif.inc'; ?>
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
require 'server.inc';

View File

@@ -1,9 +1,11 @@
--TEST--
Test ftp_ssl_connect() function : error conditions
--EXTENSIONS--
ftp
pcntl
openssl
--SKIPIF--
<?php
$ssl = 1;
require 'skipif.inc';
if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled");
?>
--FILE--

View File

@@ -1,5 +0,0 @@
<?php
if (!extension_loaded('ftp')) die('skip ftp extension not loaded');
if (!function_exists('pcntl_fork')) die('skip fork not available');
if (!empty($ssl) && !extension_loaded('openssl')) die('skip openssl extension not loaded');
?>

View File

@@ -1,7 +1,7 @@
--TEST--
GMP functionality test - factorial
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php
function fact($x) {

View File

@@ -1,7 +1,7 @@
--TEST--
Check for number base recognition
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php
/* Binary */

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #32773 (binary GMP functions returns unexpected value, when second parameter is int(0))
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php
echo '10 + 0 = ', gmp_strval(gmp_add(10, 0)), "\n";

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #50175: gmp_init() results 0 on given base and number starting with 0x or 0b
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Feature Request #50283 (allow base in gmp_strval to use full range: 2 to 62, and -2 to -36)
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php
$a = gmp_init("0x41682179fbf5");

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #52906 gmp_mod returns negative result when non-negative is expected
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #65997: Leak when using gc_collect_cycles with new GMP implementation
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #66872: Crash when passing string to gmp_testbit
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #67917: Using GMP objects with overloaded operators can cause memory exhaustion
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #69803: gmp_random_range() modifies second parameter if GMP number
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #70284 (Use after free vulnerability in unserialize() with GMP)
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,5 +1,7 @@
--TEST--
Bug #74670: Integer Underflow when unserializing GMP and possible other classes
--EXTENSIONS--
gmp
--FILE--
<?php
$str = 'C:3:"GMP":4:{s:6666666666:""}';

View File

@@ -1,7 +1,7 @@
--TEST--
Bug #80560: Strings containing only a base prefix return 0 object
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
GMP casting using casting operators
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Cloning GMP instances
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Overloaded GMP comparison in sort() etc
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
Invalid comparison with a GMP object
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_abs() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_and() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_binomial(): Binomial coefficients
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_clrbit() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_cmp() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_com() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_div_q() tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_div_qr() tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_div_r() tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,8 +1,9 @@
--TEST--
gmp_divexact() tests
--EXTENSIONS--
gmp
--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");
}

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_export() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) echo "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_fact() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_gcd() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,8 +1,7 @@
--TEST--
gmp_gcdext() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip";
?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_hamdist() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_import() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) echo "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_init() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_init() with various integer notations
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_intval() tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_invert() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_jacobi() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_kronecker(): Kronecker symbol
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_lcm(): Least common multiple
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_legendre() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_mod tests()
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_neg() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,8 +1,7 @@
--TEST--
gmp_nextprime()
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip";
?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_or() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_perfect_power(): Check if number is a perfect power
--SKIPIF--
<?php if (!extension_loaded('gmp')) die('skip gmp extension not loaded'); ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_perfect_square() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

View File

@@ -1,8 +1,9 @@
--TEST--
PHP_INT_MAX tests
--EXTENSIONS--
gmp
--SKIPIF--
<?php
if (!extension_loaded("gmp")) print "skip";
if (PHP_INT_SIZE != 8) print "skip";
?>
--FILE--

View File

@@ -1,7 +1,7 @@
--TEST--
gmp_popcount() basic tests
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--EXTENSIONS--
gmp
--FILE--
<?php

Some files were not shown because too many files have changed in this diff Show More