Skip to content

Commit

Permalink
Work around dl(mysqli) issue with OPcache on AppVeyor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cmb69 committed Sep 17, 2022
1 parent 308ad7f commit bfb4ee7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions appveyor/test_task.bat
Expand Up @@ -64,6 +64,8 @@ rem set SSLEAY_CONF=

rem prepare for OPcache
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
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

rem prepare for enchant
mkdir C:\usr\local\lib\enchant-2
Expand Down

0 comments on commit bfb4ee7

Please sign in to comment.