mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[PR #929] [MERGED] Php5.3 autoload errors #1419
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#1419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Seldaek/monolog/pull/929
Author: @fabriceparallel
Created: 2/21/2017
Status: ✅ Merged
Merged: 3/12/2017
Merged by: @Seldaek
Base:
1.x← Head:php5.3_autoload_errors📝 Commits (3)
8140f60make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compiled4e22a6Revert "make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile"50d6a76call class_exists with force autoload set to true, to force the autoload of LogLevel on registration of the handlers📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
src/Monolog/ErrorHandler.php(+3 -0)📄 Description
See this PHP5.3 bug
When an error is triggered on compile-time the autoloader is not called which create a "
LogLevelclass not found" error.I make the ErrorHandler extend LogLevel so ErrorHandler will already have all the log level it's looking for, and the autoloader won't be called.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.