]> granicus.if.org Git - php/commit
Introduce extra counter to avoid RTD key collisions
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 11 Dec 2019 16:11:30 +0000 (17:11 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 13 Dec 2019 10:04:44 +0000 (11:04 +0100)
commit0f2cdbf214efd98b4bdaf5ca41728faf00e7c037
treec727d93301dad9a85015007a2e5629d9f8454c54
parent79376ab209f61be03bbf8c1b6177c18261767da8
Introduce extra counter to avoid RTD key collisions

Also generate a fatal error if a collision occurs in zend_compile.

This is not perfect, because collisions might still be introduced
via opcache, if one file is included multiple times during a request,
invalidate in the meantime and recompiled by different processes.

This still needs to be addressed, but this patch fixes the much
more common case of collisions occuring when opcache is not used.

Fixes bug #78903.
NEWS
Zend/zend.c
Zend/zend_compile.c
Zend/zend_globals.h
ext/opcache/zend_accelerator_util_funcs.c