]> granicus.if.org Git - php/commit
Make sure TOKEN_PARSE mode is thread safe
authorNikita Popov <nikic@php.net>
Fri, 22 Jul 2016 22:00:13 +0000 (00:00 +0200)
committerNikita Popov <nikic@php.net>
Fri, 22 Jul 2016 22:00:13 +0000 (00:00 +0200)
commit07af6ba898e8fb6402643f12ccb769c5466698ad
tree809573592e8cbf8c3363ce4130096442b95d6a39
parent40b312d4c2d129f2085af585566fa417b43419e8
Make sure TOKEN_PARSE mode is thread safe

Introduce an on_event_context passed to the on_event hook. Use this
context to pass along the token array. Previously this was stored
in a non-tls global :/
Zend/zend_globals.h
Zend/zend_language_scanner.c
Zend/zend_language_scanner.h
Zend/zend_language_scanner.l
ext/tokenizer/tokenizer.c