diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-07-16 21:14:57 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-07-17 19:51:07 +0200 |
commit | e2ed7e6716f9564fcd8b13b823519baaa7256662 (patch) | |
tree | 2bfb9548254d4b3e77e5741e8064094243b87930 /.appveyor.yml | |
parent | 6f617b7759a12c341a055de42e06717ebf905130 (diff) | |
download | php-git-e2ed7e6716f9564fcd8b13b823519baaa7256662.tar.gz |
Allow multiple cache instances per user/host on Windows
Formerly, there was at most a single OPcache instance per user and the
so called system ID (which is determined from the PHP version).
Sometimes multiple OPcaches might be desired, though, particularly for
unrelated CLI scripts, which may even be necessary (e.g. for our test
suite in parallel mode).
We therefore introduce a new INI directive `opcache.cache_id` which
allows to configure independent OPcache instances for the same user.
We also use `GetUserNameW()` instead of `php_win32_get_username()`,
because the latter retrieves the user name encoded in the
`default_charset`, which can obviously yield different results for
different charsets, leading to OPcache "incompatibilities". Slightly
worse, some characters may not even be encodeable in the
`default_charset` and would be replaced by question marks, which could
result in different users sharing the same OPcache.
We also refactor, and re-use existing APIs to avoid duplicated code.
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 909a9ad65a..ab888c3493 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -33,7 +33,7 @@ environment: PARALLEL: -j2 - THREAD_SAFE: 1 OPCACHE: 1 - PARALLEL: + PARALLEL: -j2 INTRINSICS: AVX services: |