]> git.pld-linux.org Git - packages/php-pecl-mongodb.git/commitdiff
Fix test for php 7.4
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 30 Oct 2019 19:55:52 +0000 (21:55 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 30 Oct 2019 19:55:52 +0000 (21:55 +0200)
php-pecl-mongodb.spec

index f72aede090730ffcf7a8cfba578562155d6ef3b3..30d675895da63b79845a840e2b424ff31477a58c 100644 (file)
@@ -106,8 +106,10 @@ phpize
 # simple module load test, always enabled
 %{__php} -n -q \
        -d extension_dir=modules \
+%if "%php_major_version.%php_minor_version" < "7.4"
        -d extension=%{php_extensiondir}/pcre.so \
        -d extension=%{php_extensiondir}/spl.so \
+%endif
        -d extension=%{php_extensiondir}/json.so \
        -d extension=%{modname}.so \
        -m > modules.log
@@ -119,7 +121,11 @@ cat <<'EOF' > run-tests.sh
 export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
 exec %{__make} test \
        PHP_EXECUTABLE=%{__php} \
+%if "%php_major_version.%php_minor_version" < "7.4"
        PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl json" \
+%else
+       PHP_TEST_SHARED_SYSTEM_EXTENSIONS="json" \
+%endif
        RUN_TESTS_SETTINGS="-q $*"
 EOF
 chmod +x run-tests.sh
This page took 0.101577 seconds and 4 git commands to generate.