a
This commit is contained in:
+4
-2
@@ -82,8 +82,10 @@ class Scanner extends Component
|
||||
private function load_file(string $path): void
|
||||
{
|
||||
try {
|
||||
opcache_invalidate($path);
|
||||
opcache_compile_file($path);
|
||||
if (function_exists('opcache_invalidate') && function_exists('opcache_compile_file')) {
|
||||
opcache_invalidate($path);
|
||||
opcache_compile_file($path);
|
||||
}
|
||||
|
||||
require_once "$path";
|
||||
if (!isset($_SERVER['PWD'])) {
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=8.4",
|
||||
"psr/container": "^2.0"
|
||||
"psr/container": "^2.0",
|
||||
"ext-zend-opcache": "*"
|
||||
},
|
||||
"version": "v2.17",
|
||||
"autoload": {
|
||||
|
||||
Reference in New Issue
Block a user