Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0eda144

Browse filesBrowse files
minor #41551 [Security] Fix opcache preload with alias classes - for 5.3 (jderusse)
This PR was merged into the 5.3 branch. Discussion ---------- [Security] Fix opcache preload with alias classes - for 5.3 | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39961, fix #40752 | License | MIT | Doc PR | - Same fix than #41549, #41550 for 5.3 branch Commits ------- acfeaf6 [Security] Fix opcache preload with alias classes
2 parents 313adbb + acfeaf6 commit 0eda144
Copy full SHA for 0eda144

File tree

2 files changed

+8
-2
lines changed
Filter options

2 files changed

+8
-2
lines changed

‎src/Symfony/Component/Security/Core/Exception/UserNotFoundException.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Exception/UserNotFoundException.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,7 @@ public function __unserialize(array $data): void
9393
parent::__unserialize($parentData);
9494
}
9595
}
96-
class_alias(UserNotFoundException::class, UsernameNotFoundException::class);
96+
97+
if (!class_exists(UsernameNotFoundException::class, false)) {
98+
class_alias(UserNotFoundException::class, UsernameNotFoundException::class);
99+
}

‎src/Symfony/Component/Security/Core/User/InMemoryUserChecker.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/User/InMemoryUserChecker.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ public function checkPostAuth(UserInterface $user)
6767
}
6868
}
6969
}
70-
class_alias(InMemoryUserChecker::class, UserChecker::class);
70+
71+
if (!class_exists(UserChecker::class, false)) {
72+
class_alias(InMemoryUserChecker::class, UserChecker::class);
73+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.