Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-27 Thread Dmitry Stogov
Hi Antony, I'm not sure if switching from zend_error() to php_error_docref() would improve usability. I'll remove reference to Zend Support :) It, provably, came from an old private version. Thanks for caching this. Thanks. Dmitry. On Thu, Sep 26, 2013 at 11:52 AM, Antony Dovgal

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-27 Thread Dmitry Stogov
Hi Yasua, Sorry, but I don't know the rails eager loading and didn't understand you request. Thanks. Dmitry. On Thu, Sep 26, 2013 at 5:46 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi Adam and Dmitry, On Thu, Sep 26, 2013 at 5:58 AM, Dmitry Stogov dmi...@zend.com wrote: This function is

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-27 Thread Antony Dovgal
On 2013-09-27 12:48, Dmitry Stogov wrote: Hi Antony, I'm not sure if switching from zend_error() to php_error_docref() would improve usability. Well, IIRC the only difference is that it generates nice links to the docs and you're about to have those. Also I'm not sure all the cases when

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-27 Thread Dmitry Stogov
On Fri, Sep 27, 2013 at 1:46 PM, Antony Dovgal t...@daylessday.org wrote: On 2013-09-27 12:48, Dmitry Stogov wrote: Hi Antony, I'm not sure if switching from zend_error() to php_error_docref() would improve usability. Well, IIRC the only difference is that it generates nice links to the

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-27 Thread Yasuo Ohgaki
Hi Dimtry, On Fri, Sep 27, 2013 at 5:55 PM, Dmitry Stogov dmi...@zend.com wrote: Sorry, but I don't know the rails eager loading and didn't understand you request. Thanks for reply, I'll play around with opcache_compifle_file() when I have time. If I have request, I'll send it internals.

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-26 Thread Antony Dovgal
On 2013-09-26 00:58, Dmitry Stogov wrote: This function is going to be used only for cache warm-up (to load files into cache without execution). I don't think it may be useful in application code. It 's not a big problem having warning and hiding it with @ if necessary. If it's already in

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-25 Thread Adam Harvey
On 25 September 2013 01:14, Dmitry Stogov dmi...@php.net wrote: + zend_try { + op_array = persistent_compile_file(handle, ZEND_INCLUDE TSRMLS_CC); + } zend_catch { + EG(current_execute_data) = orig_execute_data; + zend_error(E_WARNING,

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-25 Thread Dmitry Stogov
This function is going to be used only for cache warm-up (to load files into cache without execution). I don't think it may be useful in application code. It 's not a big problem having warning and hiding it with @ if necessary. Thanks. Dmitry. On Wed, Sep 25, 2013 at 8:06 PM, Adam Harvey

Re: [PHP-CVS] com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_ac

2013-09-25 Thread Yasuo Ohgaki
Hi Adam and Dmitry, On Thu, Sep 26, 2013 at 5:58 AM, Dmitry Stogov dmi...@zend.com wrote: This function is going to be used only for cache warm-up (to load files into cache without execution). I don't think it may be useful in application code. It 's not a big problem having warning and