Skip to content

Commit 4cdc6a0

Browse files
committed
fix php 8.5
1 parent c30b34a commit 4cdc6a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/builder/extension/gettext.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ class gettext extends Extension
1515
public function patchBeforeBuildconf(): bool
1616
{
1717
if ($this->builder instanceof MacOSBuilder) {
18+
// new php versions
1819
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');
1922
}
2023
return true;
2124
}

0 commit comments

Comments
 (0)