Migrate skip checks to --EXTENSIONS--, p1

For rationale, see https://github.com/php/php-src/pull/6787

Extensions migrated in this part:
* bcmath
* bz2
* calendar
* com_dotnet
* ctype

Closes GH-6797.
This commit is contained in:
Max Semenik 2021-03-22 16:10:15 +03:00 committed by Nikita Popov
parent 550a662f67
commit 56f90492d6
192 changed files with 381 additions and 453 deletions

View File

@ -1,7 +1,7 @@
--TEST--
bcadd() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcadd() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcadd() with non-integers
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=5
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bccomp() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bccomp() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bccomp() with non-integers
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bccomp() with negative value
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcdiv() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -4,8 +4,8 @@ bcdiv — Divide two arbitrary precision numbers
TestFest2009
Antoni Torrents
antoni@solucionsinternet.com
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
bcdiv() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcmod() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcmod() - mod by 0
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcmod() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcmul() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcmul() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcpow() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcpow() does not support non-integral exponents
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
bcpow() does not support exponents >= 2**63
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
bcpow() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcpow() with a negative exponent
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcpowmod() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -2,8 +2,8 @@
bc_raisemod's expo can't be negative
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -2,8 +2,8 @@
bc_raisemod's mod can't be zero
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,7 +1,7 @@
--TEST--
bcscale() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcscale() fails with negative argument
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcadd() incorrect argument count
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=-2
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcscale() return value
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcsqrt() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -3,8 +3,8 @@ bcsqrt — Get the square root of an arbitrary precision number
--CREDITS--
Antoni Torrents
antoni@solucionsinternet.com
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
bcsqrt() requires a well-formed value
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bcsqrt() with argument of 0
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
bcsub() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
bcsub() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,9 +1,7 @@
--TEST--
Bug #66364 (BCMath bcmul ignores scale parameter)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcmul('0.3', '0.2', 4));

View File

@ -1,9 +1,7 @@
--TEST--
Bug #44995 (bcpowmod() fails if scale != 0)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcpowmod('4', '4', '3', 1));

View File

@ -1,9 +1,7 @@
--TEST--
Bug #46781 (BC math handles minus zero incorrectly)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcadd('-0.0', '-0.0', 1));

View File

@ -1,9 +1,7 @@
--TEST--
Bug #54598 (bcpowmod() may return 1 if modulus is 1)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcpowmod(5, 0, 1));

View File

@ -1,7 +1,9 @@
--TEST--
bcscale related problem on 64bits platforms
--EXTENSIONS--
bcmath
--SKIPIF--
<?php if(!extension_loaded("bcmath")) die("skip");
<?php
if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
--FILE--
<?php

View File

@ -1,9 +1,7 @@
--TEST--
Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition
--SKIPIF--
<?php
if(!extension_loaded("bcmath")) print "skip";
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
Bug #78878 (Buffer underflow in bc_shift_addsub)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {

View File

@ -1,9 +1,7 @@
--TEST--
Bug #80545 (bcadd('a', 'a') and bcadd('1', 'a') doesn't throw an exception)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
all errors on negative scale
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--

View File

@ -1,9 +1,7 @@
--TEST--
BCMath functions return result with requested scale
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
echo

View File

@ -1,9 +1,7 @@
--TEST--
BCMath functions return result with default scale
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale = 5
--FILE--

View File

@ -4,8 +4,8 @@ bcmath lib arguments formatting
1 and 2 argument of bcadd/bcsub/bcmul/bcdiv/bcmod/bcpowmod/bcpow/bccomp (last one works different then others internally);
1 argument of bcsqrt
All of the name above must be well-formed
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
echo bcadd("1", "2"),"\n";

View File

@ -1,7 +1,7 @@
--TEST--
bzopen() and invalid parameters
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
bzopen() using fd opened in wrong mode
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

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

View File

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

View File

@ -1,7 +1,7 @@
--TEST--
bzread() tests with invalid files
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

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

View File

@ -1,7 +1,7 @@
--TEST--
Bug #51997 (SEEK_CUR with 0 value, returns a warning)
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Bug #71263: fread() does not report bzip2.decompress errors
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip bz2 extension not loaded"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Bug #72447: Type Confusion in php_bz2_filter_create()
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php
$input = "AAAAAAAA";

View File

@ -1,7 +1,7 @@
--TEST--
Bug #72613 (Inadequate error handling in bzread())
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php
$fp = bzopen(__DIR__.'/72613.bz2', 'r');

View File

@ -1,9 +1,7 @@
--TEST--
Bug #75776 (Flushing streams with compression filter is broken)
--SKIPIF--
<?php
if (!extension_loaded('bz2')) die('skip bz2 extension not available');
?>
--EXTENSIONS--
bz2
--FILE--
<?php
$text = str_repeat('0123456789abcdef', 1000);

View File

@ -1,7 +1,7 @@
--TEST--
bzip2.compress (with convert.base64-encode)
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php
$text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';

View File

@ -1,7 +1,7 @@
--TEST--
bzip2.decompress (with convert.base64-decode)
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php
$text = 'QlpoNDFBWSZTWRN6QG0AAAoVgECFACA395UgIABIintI1N6mpowIQ0E1MTTAQGYTNcRyMZm5kgW3ib7hVboE7Tmqj3ToGZ5G3q1ZauD2G58hibSck8KS95EEAbx1Cn+LuSKcKEgJvSA2gA==';

View File

@ -1,7 +1,7 @@
--TEST--
bzopen(): throw TypeError if filename contains null bytes
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
BZ2 with files
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
BZ2 with strings
--SKIPIF--
<?php if (!extension_loaded("bz2")) print "skip"; ?>
--EXTENSIONS--
bz2
--FILE--
<?php

View File

@ -1,7 +1,7 @@
--TEST--
Bug #52744 (cal_days_in_month incorrect for December 1 BCE)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
var_dump(cal_days_in_month(CAL_GREGORIAN, 12, -1));

View File

@ -1,8 +1,9 @@
--TEST--
Bug #53574 (Integer overflow in SdnToJulian; leads to segfault)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
include 'skipif.inc';
if (PHP_INT_SIZE != 4) {
die("skip this test is for 32bit platform only");
}

View File

@ -1,8 +1,9 @@
--TEST--
Bug #53574 (Integer overflow in SdnToJulian; leads to segfault)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
include 'skipif.inc';
if (PHP_INT_SIZE == 4) {
die("skip this test is for 64bit platform only");
}

View File

@ -1,7 +1,7 @@
--TEST--
Bug #54254 (cal_days_in_month incompatible with jdtojewish in non-leap-years)
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
var_dump(cal_days_in_month(CAL_JEWISH, 1, 5771));

View File

@ -1,8 +1,9 @@
--TEST--
Bug #55797: Integer overflow in SdnToGregorian leads to segfault (in optimized builds)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
include 'skipif.inc';
if (PHP_INT_SIZE != 4) {
die("skip this test is for 32bit platform only");
}

View File

@ -1,8 +1,9 @@
--TEST--
Bug #55797: Integer overflow in SdnToGregorian leads to segfault (in optimized builds)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
include 'skipif.inc';
if (PHP_INT_SIZE == 4) {
die("skip this test is for 64bit platform only");
}

View File

@ -1,9 +1,7 @@
--TEST--
Bug #67976 (cal_days_month() fails for final month of the French calendar)
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
?>
--EXTENSIONS--
calendar
--FILE--
<?php
var_dump(cal_days_in_month(CAL_FRENCH, 13, 14));

View File

@ -1,9 +1,7 @@
--TEST--
Bug #71894 (AddressSanitizer: global-buffer-overflow in zif_cal_from_jd)
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
?>
--EXTENSIONS--
calendar
--FILE--
<?php
var_dump(cal_from_jd(347997, CAL_JEWISH));

View File

@ -1,8 +1,9 @@
--TEST--
Bug #80185 (jdtounix() fails after 2037)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
if (PHP_INT_SIZE != 8) die("skip for 64bit platforms only");
?>
--FILE--

View File

@ -1,8 +1,9 @@
--TEST--
Bug #80185 (jdtounix() fails after 2037)
--EXTENSIONS--
calendar
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
if (PHP_INT_SIZE != 4) die("skip for 32bit platforms only");
?>
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
cal_days_in_month()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
$num = cal_days_in_month(CAL_GREGORIAN, 8, 2003);

View File

@ -2,8 +2,8 @@
Test cal_days_in_month() function : error conditions
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
try {

View File

@ -1,7 +1,7 @@
--TEST--
cal_from_jd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
print_r(cal_from_jd(1748326, CAL_GREGORIAN));

View File

@ -2,8 +2,8 @@
Test cal_from_jd() function : error conditions
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
try {

View File

@ -2,8 +2,8 @@
cal_info()
--INI--
date.timezone=UTC
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
print_r(cal_info());

View File

@ -1,7 +1,7 @@
--TEST--
cal_to_jd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo cal_to_jd(CAL_GREGORIAN, 8, 26, 74), "\n";

View File

@ -2,8 +2,8 @@
Test cal_to_jd() function : error conditions
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
try {

View File

@ -4,8 +4,8 @@ easter_date()
date.timezone=UTC
--ENV--
TZ=UTC
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
putenv('TZ=UTC');

View File

@ -1,7 +1,7 @@
--TEST--
easter_days()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo easter_days(1999), "\n";

View File

@ -1,7 +1,7 @@
--TEST--
frenchtojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo frenchtojd(-1,-1,-1), "\n";

View File

@ -1,7 +1,7 @@
--TEST--
gregoriantojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo gregoriantojd( 0, 0, 0). "\n";

View File

@ -1,8 +1,9 @@
--TEST--
gregoriantojd()
--EXTENSIONS--
calendar
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
<?php include 'skipif.inc'; ?>
--FILE--
<?php
echo gregoriantojd(5, 5, 6000000) . "\n";

View File

@ -1,7 +1,7 @@
--TEST--
jddayofweek()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
foreach (array(2440588, 2452162, 2453926, -1000) as $jd) {

View File

@ -1,7 +1,7 @@
--TEST--
jdmonthname()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
foreach (array(2440588, 2452162, 2453926) as $jd) {

View File

@ -1,7 +1,7 @@
--TEST--
jdtofrench()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo jdtofrench(0). "\n";

View File

@ -1,7 +1,7 @@
--TEST--
jdtogregorian()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo jdtogregorian(0). "\n";

View File

@ -2,9 +2,10 @@
jdtogregorian(): test overflow
--CREDITS--
neweracracker@gmail.com
--EXTENSIONS--
calendar
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
if (PHP_INT_SIZE != 4) die('skip this test is for 32bit platforms only');
?>
--FILE--

View File

@ -1,7 +1,7 @@
--TEST--
jdtojewish() function
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php

View File

@ -1,8 +1,9 @@
--TEST--
Bug #64895: Integer overflow in SndToJewish
--EXTENSIONS--
calendar
--SKIPIF--
<?php
include 'skipif.inc';
if (PHP_INT_SIZE == 4) {
die("skip this test is for 64bit platform only");
}

View File

@ -1,9 +1,7 @@
--TEST--
Test all hebrew month names
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip calendar extension not available');
?>
--EXTENSIONS--
calendar
--FILE--
<?php
for ($year = 5000; $year <= 5001; $year++) {

View File

@ -2,10 +2,8 @@
jdtojewish(): test overflow
--CREDITS--
neweracracker@gmail.com
--SKIPIF--
<?php
if (!extension_loaded('calendar')) die('skip ext/calendar required');
?>
--EXTENSIONS--
calendar
--FILE--
<?php
for ($i=324542840; $i<324542850; $i++) {

View File

@ -1,7 +1,7 @@
--TEST--
jdtojulian()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo jdtojulian(0). "\n";

View File

@ -1,7 +1,7 @@
--TEST--
jdtomonthname() test
--SKIPIF--
<?php if (!extension_loaded("calendar")) print "skip"; ?>
--EXTENSIONS--
calendar
--FILE--
<?php

View File

@ -2,8 +2,8 @@
jdtounix()
--INI--
date.timezone=UTC
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo date("Y-m-d",jdtounix(2440588)). "\n";

View File

@ -4,8 +4,8 @@ Test jdtounix() function : error conditions
edgarsandi - <edgar.r.sandi@gmail.com>
--INI--
date.timezone=UTC
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
try {

View File

@ -1,7 +1,7 @@
--TEST--
jewishtojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo jewishtojd(-1,-1,-1). "\n";

View File

@ -1,7 +1,7 @@
--TEST--
juliantojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--EXTENSIONS--
calendar
--FILE--
<?php
echo juliantojd( 0, 0, 0). "\n";

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