bug #41549 [Security] Fix opcache preload with alias classes (jderusse)

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
-------

b10b6951a6 Fix opcache preload with alias classes
This commit is contained in:
Nicolas Grekas 2021-06-05 10:56:13 +02:00
commit 6eead347b0
1 changed files with 3 additions and 1 deletions

View File

@ -107,4 +107,6 @@ class TraceableAccessDecisionManager implements AccessDecisionManagerInterface
}
}
class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);
if (!class_exists(DebugAccessDecisionManager::class, false)) {
class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);
}