Skip to content

Commit

Permalink
Patch for PHP >= 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
petk authored and dixyes committed Feb 5, 2024
1 parent ab7ae31 commit a24b810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions windows/MicroBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public function build(bool $fresh = false, bool $bloat = false, bool $fakeCli =
$makefile = file_get_contents('src\php-src\Makefile');
if ($this->config->arch !== 'arm64' && 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";
} else if ($this->config->arch !== 'arm64' && 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";
}
file_put_contents('src\php-src\Makefile', $makefile);

Expand Down

0 comments on commit a24b810

Please sign in to comment.