[php-src] master: .github/scripts/windows: pass an extension_dir to the test runner.

From: Date: Wed, 14 Oct 2026 17:44:25 +0000
Subject: [php-src] master: .github/scripts/windows: pass an extension_dir to the test runner.
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142282@lists.php.net to get a copy of this message
Author: Michael Orlitzky (orlitzky) Committer: Gina Peter Banyard (Girgias) Date: 2026-10-14T18:34:08+01:00 Commit: https://github.com/php/php-src/commit/e56aedb3f7ec42e5126f3e2b851976e5db79a6b9 Raw diff: https://github.com/php/php-src/commit/e56aedb3f7ec42e5126f3e2b851976e5db79a6b9.diff .github/scripts/windows: pass an extension_dir to the test runner. In some cases, on Windows, we pass -dextension=mysqli to the test runner, but omit the extension_dir. This works fine so long as that extension_dir can be obtained from php.ini. However, we have at least one test that loads some other (or no) php.ini file; when that happens, the mysqli extension cannot be found. To solve that problem, we now also specify an extension_dir whenever we specify an extension to load. Changed paths: M .github/scripts/windows/test_task.bat Diff: diff --git a/.github/scripts/windows/test_task.bat b/.github/scripts/windows/test_task.bat index 6c49ebe40417..df4570d32142 100644 --- a/.github/scripts/windows/test_task.bat +++ b/.github/scripts/windows/test_task.bat @@ -90,9 +90,12 @@ set OPENSSL_CONF= rem set SSLEAY_CONF= rem prepare for OPcache +set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release +if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS + if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=64M -d opcache.jit=tracing rem work-around for failing to dl(mysqli) with OPcache (https://github.com/php/php-src/issues/8508) -if "%OPCACHE%" equ "1" set OPCACHE_OPTS=%OPCACHE_OPTS% -d extension=mysqli +if "%OPCACHE%" equ "1" set OPCACHE_OPTS=%OPCACHE_OPTS% -d extension=mysqli -d extension_dir=%PHP_BUILD_DIR% rem prepare for enchant mkdir %~d0\usr\local\lib\enchant-2 @@ -113,9 +116,6 @@ set MIBDIRS=%DEPS_DIR%\share\mibs sed -i "s/exec HexTest .*/exec HexTest cscript\.exe \/nologo %GITHUB_WORKSPACE:\=\/%\/ext\/snmp\/tests\/bigtest\.js/g" %GITHUB_WORKSPACE%\ext\snmp\tests\snmpd.conf start %DEPS_DIR%\bin\snmpd.exe -C -c %GITHUB_WORKSPACE%\ext\snmp\tests\snmpd.conf -Ln -set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release -if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS - rem prepare for mail curl -sLo hMailServer.zip https://downloads.php.net/~windows/php-sdk/deps/vs18/x64/hmailserver-5.7.0-vs18-x64.zip unzip -q hMailServer.zip -d hMailServer

« previous php.cvs (#142282) next »