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-- --TEST--
bcadd() function bcadd() function
--SKIPIF-- --EXTENSIONS--
<?php if(!extension_loaded("bcmath")) print "skip"; ?> bcmath
--INI-- --INI--
bcmath.scale=0 bcmath.scale=0
--FILE-- --FILE--

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,7 @@
--TEST-- --TEST--
BCMath functions return result with default scale BCMath functions return result with default scale
--SKIPIF-- --EXTENSIONS--
<?php bcmath
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--INI-- --INI--
bcmath.scale = 5 bcmath.scale = 5
--FILE-- --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 and 2 argument of bcadd/bcsub/bcmul/bcdiv/bcmod/bcpowmod/bcpow/bccomp (last one works different then others internally);
1 argument of bcsqrt 1 argument of bcsqrt
All of the name above must be well-formed All of the name above must be well-formed
--SKIPIF-- --EXTENSIONS--
<?php if(!extension_loaded("bcmath")) print "skip"; ?> bcmath
--FILE-- --FILE--
<?php <?php
echo bcadd("1", "2"),"\n"; echo bcadd("1", "2"),"\n";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -2,8 +2,8 @@
jdtounix() jdtounix()
--INI-- --INI--
date.timezone=UTC date.timezone=UTC
--SKIPIF-- --EXTENSIONS--
<?php include 'skipif.inc'; ?> calendar
--FILE-- --FILE--
<?php <?php
echo date("Y-m-d",jdtounix(2440588)). "\n"; 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> edgarsandi - <edgar.r.sandi@gmail.com>
--INI-- --INI--
date.timezone=UTC date.timezone=UTC
--SKIPIF-- --EXTENSIONS--
<?php include 'skipif.inc'; ?> calendar
--FILE-- --FILE--
<?php <?php
try { try {

View file

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

View file

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

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