diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-03-18 08:36:49 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-03-18 08:36:49 +0000 |
commit | ea9305c543823220d16ba17da0650eefcffb6e57 (patch) | |
tree | 72e7d7728b49b3ad6e5ac7b77597f2d357c0f43c /ext/mysqli/mysqli_api.c | |
parent | a0378d35146ba36e3449343b6fab908c9b062f03 (diff) | |
download | php-git-ea9305c543823220d16ba17da0650eefcffb6e57.tar.gz |
Implemented concept of "delayed early binding" that allows opcode caches to perform class declaration (early and/or run-time binding) in exactly the same order as vanila php.
The following pseudo-code explains how it should be used in opcode cache.
function cache_compile_file($filename) {
if (!is_cached($filename)) {
...
orig_compiler_options = CG(compiler_optins);
CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES |
ZEND_COMPILE_DELAYED_BINDING;
$op_array = orig_compile_file($filename);
CG(compiler_options) = orig_copiler_options;
...
} else {
$op_array = restore_from_cache($filename);
}
zend_do_delayed_early_binding($op_array);
}
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
0 files changed, 0 insertions, 0 deletions