File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,27 @@ if exist %PHP_BUILD_DIR%\php8ts.dll (
3434)
3535
3636echo .
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...
3858cd /d %PHP_BUILD_DIR%
3959php.exe --version
4060set PHP_EXIT_CODE = %errorlevel%
You can’t perform that action at this time.
0 commit comments