diff --git a/plugins/php/versions/common/fileinfo.sh b/plugins/php/versions/common/fileinfo.sh index a2be4a9a9..4de574ce6 100755 --- a/plugins/php/versions/common/fileinfo.sh +++ b/plugins/php/versions/common/fileinfo.sh @@ -58,10 +58,10 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - # FIND_C99=`cat Makefile|grep c99` - # if [ "$FIND_C99" == "" ];then - # sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile - # fi + FIND_C99=`cat Makefile|grep c99` + if [ "$version" -gt "74" ] && [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=gnu99/g' Makefile + fi make clean && make && make install && make clean