summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-runkit.spec2
1 files changed, 2 insertions, 0 deletions
diff --git a/php-pecl-runkit.spec b/php-pecl-runkit.spec
index e4bcd73..ab0158f 100644
--- a/php-pecl-runkit.spec
+++ b/php-pecl-runkit.spec
@@ -104,10 +104,12 @@ mv NTS/package.xml .
sed -e 's/-Werror//' -i NTS/config.m4
+%if "%{php_version}" > "5.6"
# Quick fix for PHP 5.6
# https://github.com/zenovich/runkit/issues/69
sed -e 's/IS_CONSTANT_ARRAY/IS_CONSTANT_AST/' \
-i NTS/runkit_import.c NTS/runkit_props.c
+%endif
%if %{with_zts}
# duplicate for ZTS build