Skip to content

Commit c7762a5

Browse files
committed
Revert "only uncomment that line temporarily"
This reverts commit d07fadd.
1 parent d07fadd commit c7762a5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/SPC/builder/BuilderBase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ 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');
264263
FileSystem::createDir(BUILD_MODULES_PATH);
265264
try {
266265
foreach ($this->getExts() as $ext) {
@@ -274,7 +273,6 @@ public function buildSharedExts(): void
274273
throw $e;
275274
}
276275
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');
278276
}
279277

280278
/**

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ 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');
284285
}
285286
// patch php-config
286287
if (file_exists(BUILD_BIN_PATH . '/php-config')) {

0 commit comments

Comments
 (0)