1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 10:12:18 +01:00
Files
archived-php-src/sapi
Dmitry Stogov ea9305c543 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);
}
2008-03-18 08:36:49 +00:00
..
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2008-03-09 16:07:46 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2004-05-19 08:45:46 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00
2007-12-31 07:12:20 +00:00