Skip to content

Commit 355da34

Browse files
committed
Merge remote-tracking branch 'origin/v3-feat/win' into v3-feat/win
2 parents 8bf2f42 + a4fd618 commit 355da34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Package/Target/php/windows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function patchBeforeBuildconfForWindows(TargetPackage $package): void
199199

200200
// patch micro win32
201201
if ($package->getBuildOption('enable-micro-win32') && !file_exists("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak")) {
202-
copy("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", "{$package->getSourceDir()}\\php-src\\sapi\\micro\\php_micro.c.win32bak");
202+
copy("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", "{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak");
203203
FileSystem::replaceFileStr("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", '#include "php_variables.h"', '#include "php_variables.h"' . "\n#define PHP_MICRO_WIN32_NO_CONSOLE 1");
204204
} else {
205205
if (file_exists("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak")) {

src/StaticPHP/Artifact/Artifact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function isBinaryExtracted(?string $target_os = null, bool $compare_hash
171171
$target_path = $extract_config['path'];
172172

173173
// Check if target is a file or directory
174-
$is_file_target = !is_dir($target_path) && str_contains($target_path, '.');
174+
$is_file_target = !is_dir($target_path) && (pathinfo($target_path, PATHINFO_EXTENSION) !== '');
175175

176176
if ($is_file_target) {
177177
// For single file extraction (e.g., vswhere.exe)

0 commit comments

Comments
 (0)