mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
only comment out that line temporarily
This commit is contained in:
parent
04f3f0872d
commit
fff23649cf
@ -260,6 +260,7 @@ abstract class BuilderBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_put_contents(BUILD_BIN_PATH . '/php-config', implode('', $lines));
|
file_put_contents(BUILD_BIN_PATH . '/php-config', implode('', $lines));
|
||||||
|
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
|
||||||
FileSystem::createDir(BUILD_MODULES_PATH);
|
FileSystem::createDir(BUILD_MODULES_PATH);
|
||||||
try {
|
try {
|
||||||
foreach ($this->getExts() as $ext) {
|
foreach ($this->getExts() as $ext) {
|
||||||
@ -273,6 +274,7 @@ abstract class BuilderBase
|
|||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
FileSystem::replaceFileLineContainsString(BUILD_BIN_PATH . '/php-config', 'extension_dir=', $extension_dir_line);
|
FileSystem::replaceFileLineContainsString(BUILD_BIN_PATH . '/php-config', 'extension_dir=', $extension_dir_line);
|
||||||
|
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', '# test "[$]$1" = "no" && $1=yes', 'test "[$]$1" = "no" && $1=yes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -285,7 +285,6 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
logger()->debug('Patching phpize prefix');
|
logger()->debug('Patching phpize prefix');
|
||||||
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', "prefix=''", "prefix='" . BUILD_ROOT_PATH . "'");
|
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', "prefix=''", "prefix='" . BUILD_ROOT_PATH . "'");
|
||||||
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', 's##', 's#/usr/local#');
|
FileSystem::replaceFileStr(BUILD_BIN_PATH . '/phpize', 's##', 's#/usr/local#');
|
||||||
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/php/build/phpize.m4', 'test "[$]$1" = "no" && $1=yes', '# test "[$]$1" = "no" && $1=yes');
|
|
||||||
}
|
}
|
||||||
// patch php-config
|
// patch php-config
|
||||||
if (file_exists(BUILD_BIN_PATH . '/php-config')) {
|
if (file_exists(BUILD_BIN_PATH . '/php-config')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user