mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
Patch for PHP >= 8.4
FIBER_ASSEMBLER and FIBER_ASM_ARCH Makefile variables in Windows build system PHP 8.4 have been removed in favor of the PHP_ASSEMBLER and FIBER_ASM_ABI.
This commit is contained in:
@@ -150,6 +150,8 @@ class WindowsBuilder extends BuilderBase
|
|||||||
$makefile = FileSystem::readFile(SOURCE_PATH . '\php-src\Makefile');
|
$makefile = FileSystem::readFile(SOURCE_PATH . '\php-src\Makefile');
|
||||||
if ($this->getPHPVersionID() >= 80200 && str_contains($makefile, 'FIBER_ASM_ARCH')) {
|
if ($this->getPHPVersionID() >= 80200 && str_contains($makefile, 'FIBER_ASM_ARCH')) {
|
||||||
$makefile .= "\r\n" . '$(MICRO_SFX): $(BUILD_DIR)\Zend\jump_$(FIBER_ASM_ARCH)_ms_pe_masm.obj $(BUILD_DIR)\Zend\make_$(FIBER_ASM_ARCH)_ms_pe_masm.obj' . "\r\n\r\n";
|
$makefile .= "\r\n" . '$(MICRO_SFX): $(BUILD_DIR)\Zend\jump_$(FIBER_ASM_ARCH)_ms_pe_masm.obj $(BUILD_DIR)\Zend\make_$(FIBER_ASM_ARCH)_ms_pe_masm.obj' . "\r\n\r\n";
|
||||||
|
} elseif ($this->getPHPVersionID() >= 84000 && str_contains($makefile, 'FIBER_ASM_ABI')) {
|
||||||
|
$makefile .= "\r\n" . '$(MICRO_SFX): $(BUILD_DIR)\Zend\jump_$(FIBER_ASM_ABI).obj $(BUILD_DIR)\Zend\make_$(FIBER_ASM_ABI).obj' . "\r\n\r\n";
|
||||||
}
|
}
|
||||||
FileSystem::writeFile(SOURCE_PATH . '\php-src\Makefile', $makefile);
|
FileSystem::writeFile(SOURCE_PATH . '\php-src\Makefile', $makefile);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user