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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 01 04:01:31 2025 UTC