php-src/.github/scripts/windows
Christoph M. Becker c7bc14dd6b
Prevent using system DLLs when running the tests
The search order for DLLs on Windows is (simplified):

* the application folder
* the system folder
* all folders in the `PATH`

(The full details are documented on Microsoft Learn[1].)

As is, we're adding `deps\bin` to the `PATH` when running the tests,
but any DLLs in the system folder take precedence, so these would be
used instead of our intended dependencies.  To mitigate that, we copy
over all DLLs from `deps\bin` to our application folder (i.e. where
php.exe, php-cgi.exe and phpdbg.exe are placed).

Since we're doing this, there is no more need to attempt to remove the
OpenSSL DLLs in the system folder (what seems to be a bad idea anyway).

[1] <https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order>

Closes GH-17805.
2025-02-16 23:06:04 +01:00
..
build.bat Retire AppVeyor 2023-07-05 15:14:20 +02:00
build_task.bat Prevent using system DLLs when running the tests 2025-02-16 23:06:04 +01:00
find-target-branch.bat Fix master branch check in find-target-branch.bat 2023-09-03 14:18:41 +02:00
test.bat Retire AppVeyor 2023-07-05 15:14:20 +02:00
test_task.bat Prevent using system DLLs when running the tests 2025-02-16 23:06:04 +01:00