Skip to content

Commit d07fadd

Browse files
committed
only uncomment that line temporarily
1 parent ac7a09e commit d07fadd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/SPC/builder/BuilderBase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public function buildSharedExts(): void
260260
}
261261
}
262262
file_put_contents(BUILD_BIN_PATH . '/php-config', implode('', $lines));
263+
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
263264
FileSystem::createDir(BUILD_MODULES_PATH);
264265
try {
265266
foreach ($this->getExts() as $ext) {
@@ -273,6 +274,7 @@ public function buildSharedExts(): void
273274
throw $e;
274275
}
275276
FileSystem::replaceFileLineContainsString(BUILD_BIN_PATH . '/php-config', 'extension_dir=', $extension_dir_line);
277+
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', '# test "[$]$1" = "no" && $1=yes', 'test "[$]$1" = "no" && $1=yes');
276278
}
277279

278280
/**

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ protected function patchPhpScripts(): void
281281
logger()->debug('Patching phpize prefix');
282282
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', "prefix=''", "prefix='" . BUILD_ROOT_PATH . "'");
283283
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', 's##', 's#/usr/local#');
284-
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
285284
}
286285
// patch php-config
287286
if (file_exists(BUILD_BIN_PATH . '/php-config')) {

0 commit comments

Comments
 (0)