mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
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 RINIT()/RSHUTDOWN(). 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. Closes GH-19288
4 lines
71 B
PHP
4 lines
71 B
PHP
<?php
|
|
printf("%s: %d\n", __FILE__, zend_test_opcache_preloading());
|
|
?>
|