From 0e0019f6940a252d5fa761b09e859a5d75b24545 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Fri, 3 Aug 2018 00:13:01 -0300 Subject: [PATCH] Remove superfluous checks of always available functions --- ext/filter/tests/033_run.inc | 4 +--- ext/mbstring/tests/overload01.phpt | 3 --- ext/mbstring/tests/overload02.phpt | 3 --- ext/openssl/tests/openssl_free_key.phpt | 3 +-- ext/phar/tests/cache_list/files/phar_test.inc | 4 +--- ext/phar/tests/files/phar_test.inc | 4 +--- ext/soap/tests/interop/Round2/Base/r2_base_005p.phpt | 1 - ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt | 1 - ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt | 1 - run-tests.php | 2 +- 10 files changed, 5 insertions(+), 21 deletions(-) diff --git a/ext/filter/tests/033_run.inc b/ext/filter/tests/033_run.inc index ecb2cf7be1..30a7a82a01 100644 --- a/ext/filter/tests/033_run.inc +++ b/ext/filter/tests/033_run.inc @@ -1,7 +1,5 @@ --INI-- output_handler= diff --git a/ext/mbstring/tests/overload02.phpt b/ext/mbstring/tests/overload02.phpt index 48705b782b..64b46dfd73 100644 --- a/ext/mbstring/tests/overload02.phpt +++ b/ext/mbstring/tests/overload02.phpt @@ -3,9 +3,6 @@ Function overloading test 2 --SKIPIF-- dirname(__FILE__) . DIRECTORY_SEPARATOR . 'openssl.cnf'); diff --git a/ext/phar/tests/cache_list/files/phar_test.inc b/ext/phar/tests/cache_list/files/phar_test.inc index f82471d13b..047f4ea051 100644 --- a/ext/phar/tests/cache_list/files/phar_test.inc +++ b/ext/phar/tests/cache_list/files/phar_test.inc @@ -1,8 +1,6 @@ - --FILE-- "test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt index f94c06f58c..116e14faac 100644 --- a/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt +++ b/ext/soap/tests/interop/Round2/Base/r2_base_005s.phpt @@ -2,7 +2,6 @@ SOAP Interop Round2 base 005 (soap/direct): echoString(utf-8) --SKIPIF-- - --FILE-- "test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0)); diff --git a/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt b/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt index 3bb1368b97..728b4f5c58 100644 --- a/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt +++ b/ext/soap/tests/interop/Round2/Base/r2_base_005w.phpt @@ -2,7 +2,6 @@ SOAP Interop Round2 base 005 (php/wsdl): echoString(utf-8) --SKIPIF-- - --INI-- soap.wsdl_cache_enabled=0 --FILE-- diff --git a/run-tests.php b/run-tests.php index c47770ca06..554f014a25 100644 --- a/run-tests.php +++ b/run-tests.php @@ -205,7 +205,7 @@ function verify_config() error('environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!'); } - if (function_exists('is_executable') && !is_executable($php)) { + if (!is_executable($php)) { error("invalid PHP executable specified by TEST_PHP_EXECUTABLE = $php"); } } -- 2.50.0