diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-11-27 11:52:53 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-11-27 11:52:53 +0300 |
commit | 23d3deb8be78cc0dd99bf07c8f33894ad2cc8484 (patch) | |
tree | a26cbd8b855f007d81a2de28cff6b89ecd51c207 /Zend | |
parent | fbf2914e1fa9df89d1986ed0be3c271d128215a6 (diff) | |
download | php-git-23d3deb8be78cc0dd99bf07c8f33894ad2cc8484.tar.gz |
Added ZEND_COMPILE_WITHOUT_EXECUTION and ZEND_COMPILE_PRELOAD to determine when PHP compiler is invoked by opcache_compile_file() or preloading.
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_compile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index b1ab5b3273..967ac9100e 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -1042,6 +1042,12 @@ END_EXTERN_C() /* ignore functions and classes declared in other files */ #define ZEND_COMPILE_IGNORE_OTHER_FILES (1<<12) +/* this flag is set when compiler invoked by opcache_compile_file() */ +#define ZEND_COMPILE_WITHOUT_EXECUTION (1<<13) + +/* this flag is set when compiler invoked during preloading */ +#define ZEND_COMPILE_PRELOAD (1<<14) + /* The default value for CG(compiler_options) */ #define ZEND_COMPILE_DEFAULT ZEND_COMPILE_HANDLE_OP_ARRAY |