Skip to content

Commit 6eb9268

Browse files
committed
Update OPCacheTrait.php
1 parent 68359ea commit 6eb9268

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Dashboards/OPCache/OPCacheTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ private function getCachedScripts(array $status): array {
7272
$name = explode('/', $full_path);
7373
$script_name = $name[array_key_last($name)];
7474

75-
if ((isset($_GET['ignore']) && $_GET['ignore'] === 'yes') && Helpers::str_starts_with($full_path, $_SERVER['DOCUMENT_ROOT'])) {
75+
if (
76+
(isset($_GET['ignore']) && $_GET['ignore'] === 'yes') &&
77+
Helpers::str_starts_with(str_replace('phar://', '', $full_path), $_SERVER['DOCUMENT_ROOT'])
78+
) {
7679
continue;
7780
}
7881

0 commit comments

Comments
 (0)