[php-src] PR #19288: Add opcache_preloading() internal function
| From: | arnaud-lb | Date: | Tue, 29 Jul 2025 13:24:14 +0000 |
| Subject: | [php-src] PR #19288: Add opcache_preloading() internal function | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32673@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19288
Author: arnaud-lb
Add a C function
opcache_preloading() that returns true during preloading.
Extensions can use this to detect preloading, not only during compilation/execution, but also in
MINIT()/MSHUTDOWN().
Since opcache currently doesn't install any header, I'm adding a new one:
zend_accelerator_api.h. Header name is based on other files in
ext/opcache.