Skip to content

Commit

Permalink
bug #41549 [Security] Fix opcache preload with alias classes (jderusse)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Fix opcache preload with alias classes

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39961, fix #40752
| License       | MIT
| Doc PR        | -

Commits
-------

b10b695 Fix opcache preload with alias classes
  • Loading branch information
nicolas-grekas committed Jun 5, 2021
2 parents 3524cf2 + b10b695 commit 6eead34
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,6 @@ public function getDecisionLog(): array
}
}

class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);
if (!class_exists(DebugAccessDecisionManager::class, false)) {
class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);
}

0 comments on commit 6eead34

Please sign in to comment.