File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ class gettext extends Extension
1515 public function patchBeforeBuildconf (): bool
1616 {
1717 if ($ this ->builder instanceof MacOSBuilder) {
18- // new php versions
19- FileSystem::replaceFileStr (SOURCE_PATH . '/php-src/ext/gettext/config.m4 ' , 'AC_CHECK_LIB([$GETTEXT_CHECK_IN_LIB ' , 'AC_CHECK_LIB([intl ' );
20- // old php versions
21- FileSystem::replaceFileStr (SOURCE_PATH . '/php-src/ext/gettext/config.m4 ' , 'AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB ' , 'AC_CHECK_LIB(intl ' );
18+ FileSystem::replaceFileStr (
19+ SOURCE_PATH . '/php-src/ext/gettext/config.m4 ' ,
20+ ['AC_CHECK_LIB($GETTEXT_CHECK_IN_LIB ' , 'AC_CHECK_LIB([$GETTEXT_CHECK_IN_LIB ' ],
21+ ['AC_CHECK_LIB(intl ' , 'AC_CHECK_LIB([intl ' ] // new php versions use a bracket
22+ );
2223 }
2324 return true ;
2425 }
You can’t perform that action at this time.
0 commit comments