[php-src] PR #17805: Prevent using system DLLs when running the tests

From: Date: Fri, 14 Feb 2025 14:21:06 +0000
Subject: [php-src] PR #17805: Prevent using system DLLs when running the tests
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30775@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17805 Author: cmb69 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> --- Again, not sure which branch to target; went with PHP-8.3 as a compromise. See https://github.com/php/php-src/actions/runs/13263835929/job/37026288607 for the problem this is trying to solve (in a more general way than just to cater to OpenSLL; there might be others in the system folder, too).

« previous php.git-pulls (#30775) next »