php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68202 equivalent to persistent_compile_file to a string
Submitted: 2014-10-09 20:39 UTC Modified: 2014-10-09 23:03 UTC
From: dmorilha at gmail dot com Assigned:
Status: Not a bug Package: opcache
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dmorilha at gmail dot com
New email:
PHP Version: OS:

 

 [2014-10-09 20:39 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-09 21:59 UTC] johannes@php.net
-Status: Open +Status: Not a bug
 [2014-10-09 21:59 UTC] johannes@php.net
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.
 [2014-10-09 23:03 UTC] dmorilha at gmail dot com
thanks johannes
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC