com php-src: Remove superfluous SKIPIF sections of always available functions: ext/date/tests/date_add_basic.phpt ext/date/ tests/date_create-1.phpt
ext/date/tests/date_create- 2.phpt ext/date/tests/date_modify-1.phpt ext/date /tests/date_modify-2.phpt ext/date/tests/date_sub_b asic.phpt
ext/date/tests/strtotime_basic.phpt ext/pcr e/tests/locales.phpt ext/pcre/tests/skip_001.inc ext/soap/tests/bugs/bug39815.phpt ext/standard
/tests/file/file_get_conten
| From: | Gabriel Caruso | Date: | Sun, 29 Jul 2018 18:42:19 +0000 |
| Subject: | com php-src: Remove superfluous SKIPIF sections of always available functions: ext/date/tests/date_add_basic.phpt ext/date/ tests/date_create-1.phpt ext/date/tests/date_create- 2.phpt ext/date/tests/date_modify-1.phpt ext/date /tests/date_modify-2.phpt ext/date/tests/date_sub_b asic.phpt ext/date/tests/strtotime_basic.phpt ext/pcr e/tests/locales.phpt ext/pcre/tests/skip_001.inc ext/soap/tests/bugs/bug39815.phpt ext/standard /tests/file/file_get_conten |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102718@lists.php.net to get a copy of this message | ||
Commit: 1461f8ef0d685392e544a594fbb3732a78834a1a
Author: Gabriel Caruso <carusogabriel34@gmail.com> Sun, 29 Jul 2018 15:42:19 -0300
Parents: f2b5ac7963e85deef3afa7fe98122e6017814435
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1461f8ef0d685392e544a594fbb3732a78834a1a
Log:
Remove superfluous SKIPIF sections of always available functions
Changed paths:
M ext/date/tests/date_add_basic.phpt
M ext/date/tests/date_create-1.phpt
M ext/date/tests/date_create-2.phpt
M ext/date/tests/date_modify-1.phpt
M ext/date/tests/date_modify-2.phpt
M ext/date/tests/date_sub_basic..phpt
M ext/date/tests/strtotime_basic.phpt
M ext/pcre/tests/locales.phpt
M ext/pcre/tests/skip_001.inc
M ext/soap/tests/bugs/bug39815.phpt
M ext/standard/tests/file/file_get_contents_error001.phpt
M ext/standard/tests/file/file_get_contents_error002.phpt
M ext/standard/tests/image/image_type_to_extension.phpt
M ext/standard/tests/image/image_type_to_mime_type.phpt
M ext/standard/tests/image/image_type_to_mime_type_basic.phpt
M ext/standard/tests/math/decbin_error.phpt
M ext/standard/tests/strings/bug20934.phpt
M ext/standard/tests/strings/bug73058.phpt
M ext/standard/tests/strings/crypt.phpt
M ext/standard/tests/strings/crypt_blowfish.phpt
M ext/standard/tests/strings/crypt_blowfish_variation1.phpt
M ext/standard/tests/strings/crypt_chars.phpt
M ext/standard/tests/strings/crypt_des_error.phpt
M ext/standard/tests/strings/crypt_sha256.phpt
M ext/standard/tests/strings/crypt_sha512.phpt
M ext/standard/tests/strings/crypt_variation1.phpt
M ext/standard/tests/strings/moneyformat.phpt
M ext/standard/tests/time/001.phpt
diff --git a/ext/date/tests/date_add_basic.phpt b/ext/date/tests/date_add_basic.phpt index 38d7ed7..adddc13 100644 --- a/ext/date/tests/date_add_basic.phpt +++ b/ext/date/tests/date_add_basic.phpt @@ -2,8 +2,6 @@ Test date_add() function : basic functionality --CREDITS-- Felix De Vliegher <felix.devliegher@gmail.com> ---SKIPIF-- -<?php if (!function_exists('date_add')) echo "skip: date_add() function not found!"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/date/tests/date_create-1.phpt b/ext/date/tests/date_create-1.phpt index 365d54d..4b156de 100644 --- a/ext/date/tests/date_create-1.phpt +++ b/ext/date/tests/date_create-1.phpt @@ -1,7 +1,5 @@ --TEST-- date_create() function [1] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set('Europe/Oslo'); diff --git a/ext/date/tests/date_create-2.phpt b/ext/date/tests/date_create-2.phpt index 406a6b0..206a0ab 100644 --- a/ext/date/tests/date_create-2.phpt +++ b/ext/date/tests/date_create-2.phpt @@ -1,7 +1,5 @@ --TEST-- date_create() function [2] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("GMT"); diff --git a/ext/date/tests/date_modify-1.phpt b/ext/date/tests/date_modify-1.phpt index c35e430..6b3e3ae 100644 --- a/ext/date/tests/date_modify-1.phpt +++ b/ext/date/tests/date_modify-1.phpt @@ -1,7 +1,5 @@ --TEST-- date_modify() function [1] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("Pacific/Kwajalein"); diff --git a/ext/date/tests/date_modify-2.phpt b/ext/date/tests/date_modify-2.phpt index cc197fc..40d8135 100644 --- a/ext/date/tests/date_modify-2.phpt +++ b/ext/date/tests/date_modify-2.phpt @@ -1,7 +1,5 @@ --TEST-- date_modify() function [2] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("GMT"); diff --git a/ext/date/tests/date_sub_basic.phpt b/ext/date/tests/date_sub_basic.phpt index 00e9626..b6aed78 100644 --- a/ext/date/tests/date_sub_basic.phpt +++ b/ext/date/tests/date_sub_basic.phpt @@ -2,8 +2,6 @@ Test date_sub() function : basic functionality --CREDITS-- Felix De Vliegher <felix.devliegher@gmail.com> ---SKIPIF-- -<?php if (!function_exists('date_sub')) echo "skip: date_sub() function not found!"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/date/tests/strtotime_basic.phpt b/ext/date/tests/strtotime_basic.phpt index dec63af..c64f0e8 100644 --- a/ext/date/tests/strtotime_basic.phpt +++ b/ext/date/tests/strtotime_basic.phpt @@ -1,7 +1,5 @@ --TEST-- strtotime() function - a test to show the difference in behaviour between 'first' and '1', "second" and "2"... ---SKIPIF-- -<?php if (!function_exists('strtotime')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/pcre/tests/locales.phpt b/ext/pcre/tests/locales.phpt index a103020..6dcb2bf 100644 --- a/ext/pcre/tests/locales.phpt +++ b/ext/pcre/tests/locales.phpt @@ -3,7 +3,6 @@ Localized match --SKIPIF-- <?php -if (!function_exists('setlocale')) die('skip: setlocale() not available'); if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not available'); ?> diff --git a/ext/pcre/tests/skip_001.inc b/ext/pcre/tests/skip_001.inc index b989dbb..35434ec 100644 --- a/ext/pcre/tests/skip_001.inc +++ b/ext/pcre/tests/skip_001.inc @@ -1,9 +1,5 @@ <?php -if (!function_exists('setlocale')) { - die('skip: setlocale() not available'); -} - if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) { die('skip pt locale not available'); } diff --git a/ext/soap/tests/bugs/bug39815.phpt b/ext/soap/tests/bugs/bug39815.phpt index 1adc50a..847c371 100644 --- a/ext/soap/tests/bugs/bug39815.phpt +++ b/ext/soap/tests/bugs/bug39815.phpt @@ -3,7 +3,6 @@ Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independen --SKIPIF-- <?php require_once('skipif.inc'); -if (!function_exists('setlocale')) die('skip setlocale() not available'); if (!@setlocale(LC_ALL, 'sv_SE', 'sv_SE.ISO8859-1')) die('skip sv_SE locale not available'); if (!@setlocale(LC_ALL, 'en_US', 'en_US.ISO8859-1')) die('skip en_US locale not available'); ?> diff --git a/ext/standard/tests/file/file_get_contents_error001.phpt b/ext/standard/tests/file/file_get_contents_error001.phpt index a347d9d..1437b8a 100644 --- a/ext/standard/tests/file/file_get_contents_error001.phpt +++ b/ext/standard/tests/file/file_get_contents_error001.phpt @@ -8,8 +8,6 @@ display_errors=false --SKIPIF-- <?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); - if (!function_exists("file_get_contents")) - die ("skip file_get_contents function is not found"); if (getenv("SKIP_ONLINE_TESTS")) die("skip online test"); ?> --FILE-- diff --git a/ext/standard/tests/file/file_get_contents_error002.phpt b/ext/standard/tests/file/file_get_contents_error002.phpt index 47c7b9c..8ca1162 100644 --- a/ext/standard/tests/file/file_get_contents_error002.phpt +++ b/ext/standard/tests/file/file_get_contents_error002.phpt @@ -5,11 +5,6 @@ file_get_contents() test using negative parameter for length (last parameter) "Sylvain R." <sracine@phpquebec.org> --INI-- display_errors=false ---SKIPIF-- -<?php - if (!function_exists("file_get_contents")) - die ("skip file_get_contents function is not found"); -?> --FILE-- <?php var_dump(file_get_contents("http://checkip.dyndns.com",null,null,0,-1)); diff --git a/ext/standard/tests/image/image_type_to_extension.phpt b/ext/standard/tests/image/image_type_to_extension.phpt index f6551fb..a2e2758 100644 --- a/ext/standard/tests/image/image_type_to_extension.phpt +++ b/ext/standard/tests/image/image_type_to_extension.phpt @@ -2,7 +2,6 @@ image_type_to_extension() --SKIPIF-- <?php - if (!function_exists('image_type_to_extension')) die('skip image_type_to_extension() not available'); require_once('skipif_imagetype.inc'); ?> --FILE-- diff --git a/ext/standard/tests/image/image_type_to_mime_type.phpt b/ext/standard/tests/image/image_type_to_mime_type.phpt index 38a90c1..199d2c4 100644 --- a/ext/standard/tests/image/image_type_to_mime_type.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type.phpt @@ -2,7 +2,6 @@ image_type_to_mime_type() --SKIPIF-- <?php - if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available'); require_once('skipif_imagetype.inc'); ?> --FILE-- diff --git a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt index 9ee9196..8e3176e 100644 --- a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt @@ -1,9 +1,5 @@ --TEST-- image_type_to_mime_type() ---SKIPIF-- -<?php - if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available'); -?> --FILE-- <?php diff --git a/ext/standard/tests/math/decbin_error.phpt b/ext/standard/tests/math/decbin_error.phpt index fcfd187..007c998 100644 --- a/ext/standard/tests/math/decbin_error.phpt +++ b/ext/standard/tests/math/decbin_error.phpt @@ -2,10 +2,6 @@ Test expm1() - Error conditions --INI-- precision=14 ---SKIPIF-- -<?php - function_exists('expm1') or die('skip expm1() is not supported in this build.'); -?> --FILE-- <?php /* Prototype : float expm1 ( float $arg ) diff --git a/ext/standard/tests/strings/bug20934.phpt b/ext/standard/tests/strings/bug20934.phpt index 0d95081..121d9b6 100644 --- a/ext/standard/tests/strings/bug20934.phpt +++ b/ext/standard/tests/strings/bug20934.phpt @@ -1,11 +1,5 @@ --TEST-- Bug #20934 (htmlspecialchars returns latin1 from UTF-8) ---SKIPIF-- -<?php -if (!function_exists("utf8_encode") || !function_exists("utf8_decode")) { - die("SKIP Neither utf8_encode() nor utf8_decode() are available"); -} -?> --FILE-- <?php $str = utf8_encode("\xe0\xe1"); diff --git a/ext/standard/tests/strings/bug73058.phpt b/ext/standard/tests/strings/bug73058.phpt index f099850..f769616 100644 --- a/ext/standard/tests/strings/bug73058.phpt +++ b/ext/standard/tests/strings/bug73058.phpt @@ -1,11 +1,5 @@ --TEST-- Bug #73058 crypt broken when salt is 'too' long ---SKIPIF-- -<?php -if (!function_exists('crypt'))) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php $pass = 'secret'; diff --git a/ext/standard/tests/strings/crypt.phpt b/ext/standard/tests/strings/crypt.phpt index 3dcff2e..f64b61c 100644 --- a/ext/standard/tests/strings/crypt.phpt +++ b/ext/standard/tests/strings/crypt.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/crypt_blowfish.phpt b/ext/standard/tests/strings/crypt_blowfish.phpt index 0bf0d19..de2cf63 100644 --- a/ext/standard/tests/strings/crypt_blowfish.phpt +++ b/ext/standard/tests/strings/crypt_blowfish.phpt @@ -2,7 +2,7 @@ Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c) --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) { +if (!defined("CRYPT_BLOWFISH")) { die("SKIP crypt()-blowfish is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_blowfish_variation1.phpt b/ext/standard/tests/strings/crypt_blowfish_variation1.phpt index 4436700..020b8af 100644 --- a/ext/standard/tests/strings/crypt_blowfish_variation1.phpt +++ b/ext/standard/tests/strings/crypt_blowfish_variation1.phpt @@ -2,7 +2,7 @@ Test Blowfish crypt() with invalid rounds --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) { +if (!defined("CRYPT_BLOWFISH")) { die("SKIP crypt()-blowfish is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_chars.phpt b/ext/standard/tests/strings/crypt_chars.phpt index 09cd868..c4e6501 100644 --- a/ext/standard/tests/strings/crypt_chars.phpt +++ b/ext/standard/tests/strings/crypt_chars.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function - characters > 0x80 ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php var_dump(crypt("À1234abcd", "99")); diff --git a/ext/standard/tests/strings/crypt_des_error.phpt b/ext/standard/tests/strings/crypt_des_error.phpt index f480efc..6c77ccd 100644 --- a/ext/standard/tests/strings/crypt_des_error.phpt +++ b/ext/standard/tests/strings/crypt_des_error.phpt @@ -1,11 +1,5 @@ --TEST-- crypt(): *0 should return *1 ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/crypt_sha256.phpt b/ext/standard/tests/strings/crypt_sha256.phpt index 37bc31b..644ab88 100644 --- a/ext/standard/tests/strings/crypt_sha256.phpt +++ b/ext/standard/tests/strings/crypt_sha256.phpt @@ -2,7 +2,7 @@ crypt() SHA-256 --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_SHA256")) { +if (!defined("CRYPT_SHA256")) { die("SKIP crypt()-sha256 is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_sha512.phpt b/ext/standard/tests/strings/crypt_sha512.phpt index 615376e..c94ebc5 100644 --- a/ext/standard/tests/strings/crypt_sha512.phpt +++ b/ext/standard/tests/strings/crypt_sha512.phpt @@ -2,7 +2,7 @@ crypt() SHA-512 --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_SHA512")) { +if (!defined("CRYPT_SHA512")) { die("SKIP crypt()-sha512 is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_variation1.phpt b/ext/standard/tests/strings/crypt_variation1.phpt index 3315f03..3f351a6 100644 --- a/ext/standard/tests/strings/crypt_variation1.phpt +++ b/ext/standard/tests/strings/crypt_variation1.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function - long salt ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/moneyformat.phpt b/ext/standard/tests/strings/moneyformat.phpt index 8adc2e3..0eec563 100644 --- a/ext/standard/tests/strings/moneyformat.phpt +++ b/ext/standard/tests/strings/moneyformat.phpt @@ -2,7 +2,7 @@ money_format test --SKIPIF-- <?php - if (!function_exists('money_format') || !function_exists('setlocale')) { + if (!function_exists('money_format')) { die("SKIP money_format - not supported\n"); } diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 3b0ed8a..0b76404 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -3,7 +3,6 @@ microtime() function --SKIPIF-- <?php if (!function_exists('microtime')) die('skip microtime() not available'); - die('warn system dependent'); ?> --FILE-- <?php
diff --git a/ext/date/tests/date_add_basic.phpt b/ext/date/tests/date_add_basic.phpt index 38d7ed7..adddc13 100644 --- a/ext/date/tests/date_add_basic.phpt +++ b/ext/date/tests/date_add_basic.phpt @@ -2,8 +2,6 @@ Test date_add() function : basic functionality --CREDITS-- Felix De Vliegher <felix.devliegher@gmail.com> ---SKIPIF-- -<?php if (!function_exists('date_add')) echo "skip: date_add() function not found!"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/date/tests/date_create-1.phpt b/ext/date/tests/date_create-1.phpt index 365d54d..4b156de 100644 --- a/ext/date/tests/date_create-1.phpt +++ b/ext/date/tests/date_create-1.phpt @@ -1,7 +1,5 @@ --TEST-- date_create() function [1] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set('Europe/Oslo'); diff --git a/ext/date/tests/date_create-2.phpt b/ext/date/tests/date_create-2.phpt index 406a6b0..206a0ab 100644 --- a/ext/date/tests/date_create-2.phpt +++ b/ext/date/tests/date_create-2.phpt @@ -1,7 +1,5 @@ --TEST-- date_create() function [2] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("GMT"); diff --git a/ext/date/tests/date_modify-1.phpt b/ext/date/tests/date_modify-1.phpt index c35e430..6b3e3ae 100644 --- a/ext/date/tests/date_modify-1.phpt +++ b/ext/date/tests/date_modify-1.phpt @@ -1,7 +1,5 @@ --TEST-- date_modify() function [1] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("Pacific/Kwajalein"); diff --git a/ext/date/tests/date_modify-2.phpt b/ext/date/tests/date_modify-2.phpt index cc197fc..40d8135 100644 --- a/ext/date/tests/date_modify-2.phpt +++ b/ext/date/tests/date_modify-2.phpt @@ -1,7 +1,5 @@ --TEST-- date_modify() function [2] ---SKIPIF-- -<?php if (!function_exists('date_create')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set("GMT"); diff --git a/ext/date/tests/date_sub_basic.phpt b/ext/date/tests/date_sub_basic.phpt index 00e9626..b6aed78 100644 --- a/ext/date/tests/date_sub_basic.phpt +++ b/ext/date/tests/date_sub_basic.phpt @@ -2,8 +2,6 @@ Test date_sub() function : basic functionality --CREDITS-- Felix De Vliegher <felix.devliegher@gmail.com> ---SKIPIF-- -<?php if (!function_exists('date_sub')) echo "skip: date_sub() function not found!"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/date/tests/strtotime_basic.phpt b/ext/date/tests/strtotime_basic.phpt index dec63af..c64f0e8 100644 --- a/ext/date/tests/strtotime_basic.phpt +++ b/ext/date/tests/strtotime_basic.phpt @@ -1,7 +1,5 @@ --TEST-- strtotime() function - a test to show the difference in behaviour between 'first' and '1', "second" and "2"... ---SKIPIF-- -<?php if (!function_exists('strtotime')) echo "SKIP"; ?> --FILE-- <?php date_default_timezone_set('UTC'); diff --git a/ext/pcre/tests/locales.phpt b/ext/pcre/tests/locales.phpt index a103020..6dcb2bf 100644 --- a/ext/pcre/tests/locales.phpt +++ b/ext/pcre/tests/locales.phpt @@ -3,7 +3,6 @@ Localized match --SKIPIF-- <?php -if (!function_exists('setlocale')) die('skip: setlocale() not available'); if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not available'); ?> diff --git a/ext/pcre/tests/skip_001.inc b/ext/pcre/tests/skip_001.inc index b989dbb..35434ec 100644 --- a/ext/pcre/tests/skip_001.inc +++ b/ext/pcre/tests/skip_001.inc @@ -1,9 +1,5 @@ <?php -if (!function_exists('setlocale')) { - die('skip: setlocale() not available'); -} - if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) { die('skip pt locale not available'); } diff --git a/ext/soap/tests/bugs/bug39815.phpt b/ext/soap/tests/bugs/bug39815.phpt index 1adc50a..847c371 100644 --- a/ext/soap/tests/bugs/bug39815.phpt +++ b/ext/soap/tests/bugs/bug39815.phpt @@ -3,7 +3,6 @@ Bug #39815 (to_zval_double() in ext/soap/php_encoding.c is not locale-independen --SKIPIF-- <?php require_once('skipif.inc'); -if (!function_exists('setlocale')) die('skip setlocale() not available'); if (!@setlocale(LC_ALL, 'sv_SE', 'sv_SE.ISO8859-1')) die('skip sv_SE locale not available'); if (!@setlocale(LC_ALL, 'en_US', 'en_US.ISO8859-1')) die('skip en_US locale not available'); ?> diff --git a/ext/standard/tests/file/file_get_contents_error001.phpt b/ext/standard/tests/file/file_get_contents_error001.phpt index a347d9d..1437b8a 100644 --- a/ext/standard/tests/file/file_get_contents_error001.phpt +++ b/ext/standard/tests/file/file_get_contents_error001.phpt @@ -8,8 +8,6 @@ display_errors=false --SKIPIF-- <?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); - if (!function_exists("file_get_contents")) - die ("skip file_get_contents function is not found"); if (getenv("SKIP_ONLINE_TESTS")) die("skip online test"); ?> --FILE-- diff --git a/ext/standard/tests/file/file_get_contents_error002.phpt b/ext/standard/tests/file/file_get_contents_error002.phpt index 47c7b9c..8ca1162 100644 --- a/ext/standard/tests/file/file_get_contents_error002.phpt +++ b/ext/standard/tests/file/file_get_contents_error002.phpt @@ -5,11 +5,6 @@ file_get_contents() test using negative parameter for length (last parameter) "Sylvain R." <sracine@phpquebec.org> --INI-- display_errors=false ---SKIPIF-- -<?php - if (!function_exists("file_get_contents")) - die ("skip file_get_contents function is not found"); -?> --FILE-- <?php var_dump(file_get_contents("http://checkip.dyndns.com",null,null,0,-1)); diff --git a/ext/standard/tests/image/image_type_to_extension.phpt b/ext/standard/tests/image/image_type_to_extension.phpt index f6551fb..a2e2758 100644 --- a/ext/standard/tests/image/image_type_to_extension.phpt +++ b/ext/standard/tests/image/image_type_to_extension.phpt @@ -2,7 +2,6 @@ image_type_to_extension() --SKIPIF-- <?php - if (!function_exists('image_type_to_extension')) die('skip image_type_to_extension() not available'); require_once('skipif_imagetype.inc'); ?> --FILE-- diff --git a/ext/standard/tests/image/image_type_to_mime_type.phpt b/ext/standard/tests/image/image_type_to_mime_type.phpt index 38a90c1..199d2c4 100644 --- a/ext/standard/tests/image/image_type_to_mime_type.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type.phpt @@ -2,7 +2,6 @@ image_type_to_mime_type() --SKIPIF-- <?php - if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available'); require_once('skipif_imagetype.inc'); ?> --FILE-- diff --git a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt index 9ee9196..8e3176e 100644 --- a/ext/standard/tests/image/image_type_to_mime_type_basic.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type_basic.phpt @@ -1,9 +1,5 @@ --TEST-- image_type_to_mime_type() ---SKIPIF-- -<?php - if (!function_exists('image_type_to_mime_type')) die('skip image_type_to_mime_type() not available'); -?> --FILE-- <?php diff --git a/ext/standard/tests/math/decbin_error.phpt b/ext/standard/tests/math/decbin_error.phpt index fcfd187..007c998 100644 --- a/ext/standard/tests/math/decbin_error.phpt +++ b/ext/standard/tests/math/decbin_error.phpt @@ -2,10 +2,6 @@ Test expm1() - Error conditions --INI-- precision=14 ---SKIPIF-- -<?php - function_exists('expm1') or die('skip expm1() is not supported in this build.'); -?> --FILE-- <?php /* Prototype : float expm1 ( float $arg ) diff --git a/ext/standard/tests/strings/bug20934.phpt b/ext/standard/tests/strings/bug20934.phpt index 0d95081..121d9b6 100644 --- a/ext/standard/tests/strings/bug20934.phpt +++ b/ext/standard/tests/strings/bug20934.phpt @@ -1,11 +1,5 @@ --TEST-- Bug #20934 (htmlspecialchars returns latin1 from UTF-8) ---SKIPIF-- -<?php -if (!function_exists("utf8_encode") || !function_exists("utf8_decode")) { - die("SKIP Neither utf8_encode() nor utf8_decode() are available"); -} -?> --FILE-- <?php $str = utf8_encode("\xe0\xe1"); diff --git a/ext/standard/tests/strings/bug73058.phpt b/ext/standard/tests/strings/bug73058.phpt index f099850..f769616 100644 --- a/ext/standard/tests/strings/bug73058.phpt +++ b/ext/standard/tests/strings/bug73058.phpt @@ -1,11 +1,5 @@ --TEST-- Bug #73058 crypt broken when salt is 'too' long ---SKIPIF-- -<?php -if (!function_exists('crypt'))) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php $pass = 'secret'; diff --git a/ext/standard/tests/strings/crypt.phpt b/ext/standard/tests/strings/crypt.phpt index 3dcff2e..f64b61c 100644 --- a/ext/standard/tests/strings/crypt.phpt +++ b/ext/standard/tests/strings/crypt.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/crypt_blowfish.phpt b/ext/standard/tests/strings/crypt_blowfish.phpt index 0bf0d19..de2cf63 100644 --- a/ext/standard/tests/strings/crypt_blowfish.phpt +++ b/ext/standard/tests/strings/crypt_blowfish.phpt @@ -2,7 +2,7 @@ Official blowfish tests (http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/glibc/crypt_blowfish/wrapper.c) --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) { +if (!defined("CRYPT_BLOWFISH")) { die("SKIP crypt()-blowfish is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_blowfish_variation1.phpt b/ext/standard/tests/strings/crypt_blowfish_variation1.phpt index 4436700..020b8af 100644 --- a/ext/standard/tests/strings/crypt_blowfish_variation1.phpt +++ b/ext/standard/tests/strings/crypt_blowfish_variation1.phpt @@ -2,7 +2,7 @@ Test Blowfish crypt() with invalid rounds --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_BLOWFISH")) { +if (!defined("CRYPT_BLOWFISH")) { die("SKIP crypt()-blowfish is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_chars.phpt b/ext/standard/tests/strings/crypt_chars.phpt index 09cd868..c4e6501 100644 --- a/ext/standard/tests/strings/crypt_chars.phpt +++ b/ext/standard/tests/strings/crypt_chars.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function - characters > 0x80 ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php var_dump(crypt("À1234abcd", "99")); diff --git a/ext/standard/tests/strings/crypt_des_error.phpt b/ext/standard/tests/strings/crypt_des_error.phpt index f480efc..6c77ccd 100644 --- a/ext/standard/tests/strings/crypt_des_error.phpt +++ b/ext/standard/tests/strings/crypt_des_error.phpt @@ -1,11 +1,5 @@ --TEST-- crypt(): *0 should return *1 ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/crypt_sha256.phpt b/ext/standard/tests/strings/crypt_sha256.phpt index 37bc31b..644ab88 100644 --- a/ext/standard/tests/strings/crypt_sha256.phpt +++ b/ext/standard/tests/strings/crypt_sha256.phpt @@ -2,7 +2,7 @@ crypt() SHA-256 --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_SHA256")) { +if (!defined("CRYPT_SHA256")) { die("SKIP crypt()-sha256 is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_sha512.phpt b/ext/standard/tests/strings/crypt_sha512.phpt index 615376e..c94ebc5 100644 --- a/ext/standard/tests/strings/crypt_sha512.phpt +++ b/ext/standard/tests/strings/crypt_sha512.phpt @@ -2,7 +2,7 @@ crypt() SHA-512 --SKIPIF-- <?php -if (!function_exists('crypt') || !defined("CRYPT_SHA512")) { +if (!defined("CRYPT_SHA512")) { die("SKIP crypt()-sha512 is not available"); } ?> diff --git a/ext/standard/tests/strings/crypt_variation1.phpt b/ext/standard/tests/strings/crypt_variation1.phpt index 3315f03..3f351a6 100644 --- a/ext/standard/tests/strings/crypt_variation1.phpt +++ b/ext/standard/tests/strings/crypt_variation1.phpt @@ -1,11 +1,5 @@ --TEST-- crypt() function - long salt ---SKIPIF-- -<?php -if (!function_exists('crypt')) { - die("SKIP crypt() is not available"); -} -?> --FILE-- <?php diff --git a/ext/standard/tests/strings/moneyformat.phpt b/ext/standard/tests/strings/moneyformat.phpt index 8adc2e3..0eec563 100644 --- a/ext/standard/tests/strings/moneyformat.phpt +++ b/ext/standard/tests/strings/moneyformat.phpt @@ -2,7 +2,7 @@ money_format test --SKIPIF-- <?php - if (!function_exists('money_format') || !function_exists('setlocale')) { + if (!function_exists('money_format')) { die("SKIP money_format - not supported\n"); } diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 3b0ed8a..0b76404 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -3,7 +3,6 @@ microtime() function --SKIPIF-- <?php if (!function_exists('microtime')) die('skip microtime() not available'); - die('warn system dependent'); ?> --FILE-- <?php