Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fatal error in NormalizeFormatter. #1833

Conversation

koekaverna
Copy link
Contributor

@koekaverna koekaverna commented Sep 8, 2023

PHP Fatal error: method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Monolog\TestClass" of the object you
are trying to operate on was loaded before unserialize() gets called or provide an autoloader to load the class definition in /var/www/html/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 177

When NormalizeFormatter use method_exists on incomplete object it cause fatal error.

…ied to execute a method or access a property of an incomplete object.
@Seldaek
Copy link
Owner

Seldaek commented Oct 27, 2023

Thanks! Merged in 2.x & main

@Seldaek Seldaek closed this in ed80d53 Oct 27, 2023
@koekaverna
Copy link
Contributor Author

@Seldaek Hi, it's not fixed in 2.9.2 JsonFormatter. There is normalize method override NormalizerFormatter::normalize and have same problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants