summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-09-01 07:41:03 +0200
committerRemi Collet <fedora@famillecollet.com>2014-09-01 07:41:03 +0200
commitc2f47e8fd660fd4cbb1b4c164ee82fe97542df55 (patch)
treecd307ac8c98ebb71d6386c2e87dcd250f2471712
parentcaf9b8ab8fdfaf96bf236947091a49488ace67a2 (diff)
php-pecl-runkit: fix php < 5.6 build
-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