The patch has been just committed.
You should use something like the following code to make it work.

 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);
  }

Thanks. Dmitry.

phpxcache wrote:
session (or caused by TSRM/ZendEngine) seems broken in my local cvs
checkout i'm not sure if it's relatived to this patch but i did 'cvs
up' and some commit broke the patch (with conflicts)
please commit, or roll out another diff against the PHP_5_3 cvs so i
can test it again

thanks

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to