Req #68202 [Opn->Nab]: equivalent to persistent_compile_file to a string

From: Date: Thu, 09 Oct 2014 21:59:17 +0000
Subject: Req #68202 [Opn->Nab]: equivalent to persistent_compile_file to a string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187992@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68202&edit=1 ID: 68202 Updated by: johannes@php.net Reported by: dmorilha at gmail dot com Summary: equivalent to persistent_compile_file to a string -Status: Open +Status: Not a bug Type: Feature/Change Request Package: opcache PHP Version: Irrelevant Block user comment: N Private report: N New Comment: A zend_file_handle can describe a memory mapped file. See https://github.com/johannes/pconn-sapi/blob/master/pconnect-sapi.c#L281 for an example. Previous Comments: ------------------------------------------------------------------------ [2014-10-09 20:39:45] dmorilha at gmail dot com Description: ------------ Would it be possible to expose a function similar to persistent_compile_file which accepts a string instead of a pointer to zend_file_handle? I would like to offer a require statement which accept multiple arguments, concatenate their content and add the result into the opcache. It looks like multiple requires perform slower when compared with a single require with all the code merged ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68202&edit=1

« previous php.bugs (#187992) next »