summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-snuffleupagus.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/php-snuffleupagus.spec b/php-snuffleupagus.spec
index cd9a69e..956ce12 100644
--- a/php-snuffleupagus.spec
+++ b/php-snuffleupagus.spec
@@ -166,12 +166,12 @@ else
rm src/tests/upload_validation/upload_validation_real.phpt
fi
-cd %{sources}
-
-%if "%{php_version}" < "8"
-rm -rf src/tests/*php8*/
-%endif
+VER=$(%{__php} -r 'echo PHP_VERSION_ID;')
+if [ $VER -lt 80000 ]; then
+ rm -rf src/tests/*php8*/
+fi
+cd %{sources}
export SP_SKIP_OLD_PHP_CHECK=1
# add extensions used by test suite