php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81080 Support opcache for eval input
Submitted: 2021-05-25 10:09 UTC Modified: -
From: video dot ice dot power at seznam dot cz Assigned:
Status: Open Package: opcache
PHP Version: 8.0.6 OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-05-25 10:09 UTC] video dot ice dot power at seznam dot cz
Description:
------------
Eval is very often used to execute some compiled scripts.

To speedup the processing, the usual approach is to save the script to FS to utilize opcache.

This is a feature request to process eval input thru opcache as if the input was from a file. This improves performance as saving one-shot only file to FS is completely unneeded. Input hash can be very easily used as a cache key.

To prevent pruning all file cache data, opcache size for eval should be limited to like 50%.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 15:01:23 2021 UTC