From 218a93b898b4ecd182d1ab1c1f9d8d35bb2f1799 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 31 Jan 2024 11:18:21 +0100 Subject: [PATCH] Use EXTENSIONS instead of SKIPIF sections in *.phpt This also fixes skipped tests due to different naming "zend-test" instead of "zend_test" and "PDO" instead of "pdo": - ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt - ext/simplexml/tests/libxml_global_state_entity_loader_bypass.phpt - ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt - ext/zend_test/tests/observer_sqlite_create_function.phpt EXTENSIONS section is used for the Windows build to load the non-static extensions. Closes GH-13276 --- ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt | 4 ++-- ext/com_dotnet/tests/gh8778.phpt | 3 ++- ext/dom/tests/bug79971_2.phpt | 6 ++---- .../tests/libxml_global_state_entity_loader_bypass.phpt | 7 ++++--- ext/filter/tests/bug77221.phpt | 6 ++---- ext/filter/tests/bug81122.phpt | 6 ++---- ext/intl/tests/gh10647.phpt | 6 ++---- ext/intl/tests/gh8364.phpt | 6 ++---- ext/intl/tests/locale/bug72809.phpt | 6 ++---- ext/mbstring/tests/gh8086.phpt | 6 ++---- ext/openssl/tests/bug50293.phpt | 6 ++---- ext/openssl/tests/gh9339.phpt | 6 ++---- ext/pdo/tests/gh8626.phpt | 3 ++- ext/pdo_pgsql/tests/gh7723.phpt | 4 +++- ext/pdo_pgsql/tests/gh9411.phpt | 4 +++- ext/phar/tests/GHSA-jqcx-ccgc-xwhv.phpt | 4 ++-- ext/phar/tests/bug81211.phpt | 3 ++- .../tests/libxml_global_state_entity_loader_bypass.phpt | 7 ++++--- .../tests/libxml_global_state_entity_loader_bypass.phpt | 7 ++++--- ext/zend_test/tests/observer_sqlite_create_function.phpt | 2 +- ext/zip/tests/bug77978.phpt | 6 ++---- ext/zip/tests/bug80833.phpt | 3 ++- ext/zip/tests/bug81420.phpt | 6 ++---- ext/zip/tests/bug81490.phpt | 6 ++---- ext/zip/tests/bug_gh8781.phpt | 6 ++---- 25 files changed, 57 insertions(+), 72 deletions(-) diff --git a/ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt b/ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt index 82cb3573529..a9fd3a21186 100644 --- a/ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt +++ b/ext/bz2/tests/bzerr_functions_on_invalid_stream.phpt @@ -1,7 +1,7 @@ --TEST-- Calling bzerr* functions on non-bz2 streams ---SKIPIF-- - +--EXTENSIONS-- +bz2 --FILE-- --FILE-- diff --git a/ext/dom/tests/bug79971_2.phpt b/ext/dom/tests/bug79971_2.phpt index c4e6b1e4e09..f5bee66302b 100644 --- a/ext/dom/tests/bug79971_2.phpt +++ b/ext/dom/tests/bug79971_2.phpt @@ -1,9 +1,7 @@ --TEST-- Bug #79971 (special character is breaking the path in xml function) ---SKIPIF-- - +--EXTENSIONS-- +dom --FILE-- --FILE-- diff --git a/ext/filter/tests/bug77221.phpt b/ext/filter/tests/bug77221.phpt index 307a83898ac..f94a14dee2d 100644 --- a/ext/filter/tests/bug77221.phpt +++ b/ext/filter/tests/bug77221.phpt @@ -1,9 +1,7 @@ --TEST-- Bug #77221 (Request IP address filter flag to exclude non-global IP addresses) ---SKIPIF-- - +--EXTENSIONS-- +filter --FILE-- +--EXTENSIONS-- +filter --FILE-- +--EXTENSIONS-- +intl --FILE-- +--EXTENSIONS-- +intl --FILE-- +--EXTENSIONS-- +intl --FILE-- +--EXTENSIONS-- +mbstring --INI-- sendmail_path={MAIL:{PWD}/gh8086.eml} mail.mixed_lf_and_crlf=on diff --git a/ext/openssl/tests/bug50293.phpt b/ext/openssl/tests/bug50293.phpt index 8eae2914bd1..0fc2bc371a7 100644 --- a/ext/openssl/tests/bug50293.phpt +++ b/ext/openssl/tests/bug50293.phpt @@ -1,9 +1,7 @@ --TEST-- Bug #50293 (Several openssl functions ignore the VCWD) ---SKIPIF-- - +--EXTENSIONS-- +openssl --FILE-- +--EXTENSIONS-- +openssl --FILE-- execute() failed, then execute successfully, errorInfo() information is incorrect +--EXTENSIONS-- +pdo --SKIPIF-- +--EXTENSIONS-- +phar --INI-- phar.readonly=0 --FILE-- diff --git a/ext/phar/tests/bug81211.phpt b/ext/phar/tests/bug81211.phpt index 96b1401b403..fe7b1326aa6 100644 --- a/ext/phar/tests/bug81211.phpt +++ b/ext/phar/tests/bug81211.phpt @@ -1,8 +1,9 @@ --TEST-- Bug #81211 (Symlinks are followed when creating PHAR archive) +--EXTENSIONS-- +phar --SKIPIF-- --FILE-- diff --git a/ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt b/ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt index cb0297b6b1b..a0223367c70 100644 --- a/ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt +++ b/ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt @@ -1,10 +1,11 @@ --TEST-- GHSA-3qrf-m4j2-pcrr (libxml global state entity loader bypass) +--EXTENSIONS-- +libxml +xmlreader +zend_test --SKIPIF-- --FILE-- diff --git a/ext/zend_test/tests/observer_sqlite_create_function.phpt b/ext/zend_test/tests/observer_sqlite_create_function.phpt index 85d269c9ead..26330043ef2 100644 --- a/ext/zend_test/tests/observer_sqlite_create_function.phpt +++ b/ext/zend_test/tests/observer_sqlite_create_function.phpt @@ -2,7 +2,7 @@ Observer: PDO::sqliteCreateFunction() can be observed --EXTENSIONS-- zend_test -PDO +pdo pdo_sqlite --INI-- zend_test.observer.enabled=1 diff --git a/ext/zip/tests/bug77978.phpt b/ext/zip/tests/bug77978.phpt index 2f3c22f4213..bcf3538f65d 100644 --- a/ext/zip/tests/bug77978.phpt +++ b/ext/zip/tests/bug77978.phpt @@ -1,9 +1,7 @@ --TEST-- Bug #77978 (Dirname ending in colon unzips to wrong dir) ---SKIPIF-- - +--EXTENSIONS-- +zip --FILE-- --FILE-- diff --git a/ext/zip/tests/bug81420.phpt b/ext/zip/tests/bug81420.phpt index 9eec0ee7e99..ad89e7c0ac7 100644 --- a/ext/zip/tests/bug81420.phpt +++ b/ext/zip/tests/bug81420.phpt @@ -1,9 +1,7 @@ --TEST-- Bug #81420 (ZipArchive::extractTo extracts outside of destination) ---SKIPIF-- - +--EXTENSIONS-- +zip --FILE-- +--EXTENSIONS-- +zip --FILE-- +--EXTENSIONS-- +zip --FILE--