Skip to content

Commit bfb4ee7

Browse files
committed
Work around dl(mysqli) issue with OPcache on AppVeyor
As described in #8508, if OPcache is enabled, ext/mysqli can't be dl()'d; we work around that by loading the extension on startup. Closes GH-9557.
1 parent 308ad7f commit bfb4ee7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appveyor/test_task.bat

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ rem set SSLEAY_CONF=
6464

6565
rem prepare for OPcache
6666
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=16M
67+
rem work-around for failing to dl(mysqli) with OPcache (https://github.com/php/php-src/issues/8508)
68+
if "%OPCACHE%" equ "1" set OPCACHE_OPTS=%OPCACHE_OPTS% -d extension=mysqli
6769

6870
rem prepare for enchant
6971
mkdir C:\usr\local\lib\enchant-2

0 commit comments

Comments
 (0)