|  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: -
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: video dot ice dot power at seznam dot cz
New email:
PHP Version: OS:


 [2021-05-25 10:09 UTC] video dot ice dot power at seznam dot cz
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%.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2022-12-31 10:21 UTC] melindaetinw81 at gmail dot com
I have faced the same issue. Can anyone help me? (
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 18:01:28 2023 UTC