Skip to content

Commit 3bbb2be

Browse files
committed
* fix Windows build -> Debug Copy DLL
1 parent efc26bc commit 3bbb2be

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/scripts/windows/test_task.bat

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,27 @@ if exist %PHP_BUILD_DIR%\php8ts.dll (
3434
)
3535

3636
echo.
37-
echo All files found, testing PHP executable...
37+
echo Copying deps DLLs like official PHP does...
38+
set DEPS_DIR=C:\build-cache\deps-master-vs17-x64
39+
echo Deps directory: %DEPS_DIR%
40+
echo Available DLLs in deps:
41+
dir %DEPS_DIR%\bin\*.dll | findstr "vcruntime\|php"
42+
43+
echo Copying all deps DLLs to build directory...
44+
copy /-y %DEPS_DIR%\bin\*.dll %PHP_BUILD_DIR%\
45+
echo Copy completed.
46+
47+
echo.
48+
echo Checking if vcruntime140.dll is now present:
49+
if exist %PHP_BUILD_DIR%\vcruntime140.dll (
50+
echo SUCCESS: vcruntime140.dll found in build directory
51+
) else (
52+
echo WARNING: vcruntime140.dll still missing, trying system copy...
53+
copy "C:\Windows\System32\vcruntime140.dll" %PHP_BUILD_DIR%\ >NUL 2>&1
54+
)
55+
56+
echo.
57+
echo Testing PHP executable...
3858
cd /d %PHP_BUILD_DIR%
3959
php.exe --version
4060
set PHP_EXIT_CODE=%errorlevel%

0 commit comments

Comments
 (0)