diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-07-13 14:49:00 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-07-13 14:49:00 +0200 |
commit | 68c0c812c8e61564cc20c886e507660c5ae56f89 (patch) | |
tree | 05d4d83949ee23150e71ca6498d2180a9614f6db | |
parent | 71bd212d0e70fd721c64e06d21b41daf0c560d15 (diff) | |
parent | f5e47718249a292c358cb1a3b4a333106540b6e1 (diff) | |
download | php-git-68c0c812c8e61564cc20c886e507660c5ae56f89.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove checks for always enabled spl and pcre
-rw-r--r-- | ext/spl/tests/bug70868.phpt | 2 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/bug44295-win.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/general_functions/bug44295.phpt | 4 | ||||
-rwxr-xr-x | run-tests.php | 25 |
4 files changed, 6 insertions, 29 deletions
diff --git a/ext/spl/tests/bug70868.phpt b/ext/spl/tests/bug70868.phpt index 724576d3bc..fd3bbf43e5 100644 --- a/ext/spl/tests/bug70868.phpt +++ b/ext/spl/tests/bug70868.phpt @@ -2,8 +2,6 @@ Bug #70868, with PCRE JIT --INI-- pcre.jit=1 ---SKIPIF-- -<?php if (!extension_loaded("pcre")) die("skip"); ?> --FILE-- <?php diff --git a/ext/standard/tests/general_functions/bug44295-win.phpt b/ext/standard/tests/general_functions/bug44295-win.phpt index 222b7beda7..13a8918bcd 100644 --- a/ext/standard/tests/general_functions/bug44295-win.phpt +++ b/ext/standard/tests/general_functions/bug44295-win.phpt @@ -2,8 +2,8 @@ user defined error handler + set_error_handling(EH_THROW) --SKIPIF-- <?php - if(substr(PHP_OS, 0, 3) != "WIN") die("skip Windows only"); - if (!extension_loaded("spl") || is_dir('c:\\not\\exists\\here')) die("skip"); +if (substr(PHP_OS, 0, 3) != "WIN") die("skip Windows only"); +if (is_dir('c:\\not\\exists\\here')) die("skip directory c:\\not\\exists\\here already exists"); ?> --FILE-- <?php diff --git a/ext/standard/tests/general_functions/bug44295.phpt b/ext/standard/tests/general_functions/bug44295.phpt index a184719193..c9744e64dd 100644 --- a/ext/standard/tests/general_functions/bug44295.phpt +++ b/ext/standard/tests/general_functions/bug44295.phpt @@ -2,8 +2,8 @@ user defined error handler + set_error_handling(EH_THROW) --SKIPIF-- <?php - if(substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); - if (!extension_loaded("spl") || is_dir('/this/path/does/not/exist')) die("skip"); +if (substr(PHP_OS, 0, 3) == "WIN") die("skip Not for Windows"); +if (is_dir('/this/path/does/not/exist')) die("skip directory /this/path/does/not/exist already exists"); ?> --FILE-- <?php diff --git a/run-tests.php b/run-tests.php index d83669b706..f54dc2d37a 100755 --- a/run-tests.php +++ b/run-tests.php @@ -74,27 +74,6 @@ function main() } define('TEST_PHP_SRCDIR', getcwd()); - - /* Sanity check to ensure that pcre extension needed by this script is available. - * In the event it is not, print a nice error message indicating that this script will - * not run without it. - */ - - if (!extension_loaded('pcre')) { - echo <<<NO_PCRE_ERROR - -+-----------------------------------------------------------+ -| ! ERROR ! | -| The test-suite requires that you have pcre extension | -| enabled. To enable this extension either compile your PHP | -| with --with-pcre-regex or if you've compiled pcre as a | -| shared module load it via php.ini. | -+-----------------------------------------------------------+ - -NO_PCRE_ERROR; - exit(1); - } - if (!function_exists('proc_open')) { echo <<<NO_PROC_OPEN_ERROR @@ -2680,7 +2659,7 @@ COMMAND $cmd $info = " (warn: XFAIL section but test passes)"; } if (isset($section_text['XLEAK'])) { $warn = true; - $info = " (warn: XLEAK section but test passes)"; + $info = " (warn: XLEAK section but test passes)"; } else { show_result("PASS", $tested, $tested_file, '', $temp_filenames); junit_mark_test_as('PASS', $shortname, $tested); @@ -2704,7 +2683,7 @@ COMMAND $cmd } if ($leaked) { - $restype[] = isset($section_text['XLEAK']) ? + $restype[] = isset($section_text['XLEAK']) ? 'XLEAK' : 'LEAK'; } |