Re: Re: Windows OpCache bug fix
| From: | Dmitry Stogov | Date: | Mon, 12 Oct 2015 08:34:32 +0000 |
| Subject: | Re: Re: Windows OpCache bug fix | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88749@lists.php.net to get a copy of this message | ||
Anatol committed a better fix. It falls back to file-cache in case of
failure, and maps just a small portion of SHM for synchronization between
processes.
In general, extending this approach, we may map the whole SHM segment into
different address space and implement routines to find/load data from SHM
instead of files. But this is for 7.1.
Thanks. Dmitry.
On Fri, Oct 9, 2015 at 10:53 PM, Kalle Sommer Nielsen <kalle@php.net> wrote:
> 2015-10-08 10:33 GMT+02:00 Dmitry Stogov <dmitry@zend.com>:
> > few notes:
> > - are you sure SysV IPC API is available everywhere? I mean shmget()
> > in file_cache_fallback_init().
> > (I didn't know about Windows).
>
> Yes the SysV IPC API is available under Windows, because we have our
> own implementation in TSRM/, more specifically TSRM/tsrm_win32.c line
> ~591 (for shmget).
>
>
>
> --
> regards,
>
> Kalle Sommer Nielsen
> kalle@php.net
>