Skip to content

Conversation

@jordikroon
Copy link

@jordikroon jordikroon commented Dec 21, 2025

Adds documentation for two OPCache functions:

  • opcache_is_script_cached_in_file_cache: checks if a script is cached in OPCache file cache
  • opcache_jit_blacklist: blacklists a function from being JIT compiled

The opcache_jit_blacklist function exists since 2024 but has never been documented. Additionally opcache_is_script_cached_in_file_cache is new since PHP 8.5.

References:
#4995
php/php-src#15559
php/php-src#16979

Doc tracker:
#3872
#4886

Add documentation for two new OPCache functions:
- opcache_is_script_cached_in_file_cache: checks if a script is cached in OPCache file cache
- opcache_jit_blacklist: blacklists a function from being JIT compiled

Update opcache_is_script_cached documentation to clarify it checks in-memory cache and cross-reference the new file cache function.
Add version information for two new opcache functions:
- opcache_is_script_cached_in_file_cache (PHP 8.5.0+)
- opcache_jit_blacklist (PHP 8.4.0+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant