We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e354b4 commit 1272acdCopy full SHA for 1272acd
1 file changed
src/SPC/store/SourcePatcher.php
@@ -125,6 +125,15 @@ public static function patchBeforeConfigure(BuilderBase $builder): void
125
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/configure', '/have_capstone="yes"/', 'have_capstone="no"');
126
}
127
128
+ // PHP 8.2 and below: bcmath libbcmath uses K&R style C function
129
+ if (is_unix() && $builder->getPHPVersionID() < 80300) {
130
+ FileSystem::replaceFileStr(
131
+ SOURCE_PATH . '/php-src/configure',
132
+ "for ac_arg in '' -std=gnu23",
133
+ "for ac_arg in ''"
134
+ );
135
+ }
136
+
137
if (file_exists(SOURCE_PATH . '/php-src/configure.ac.bak')) {
138
// restore configure.ac
139
FileSystem::restoreBackupFile(SOURCE_PATH . '/php-src/configure.ac');
0 commit comments