Re: 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_accelerator_module.c
| From: | Antony Dovgal | Date: | Thu, 26 Sep 2013 07:52:09 +0000 |
| Subject: | Re: 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_accelerator_module.c |
||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-73286@lists.php.net to get a copy of this message | ||
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 ext/, why not use php_error_docref() instead of zend_error() and get rid of messages like "class loading error, class %s, function %s. Please call Zend Support" ? -- Wbr, Antony Dovgal --- http://pinba.org - realtime profiling for PHP