mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[PR #349] [MERGED] fixed resource check for multithreaded usage #1095
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#1095
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/349
Author: @zelgerj
Created: 4/7/2014
Status: ✅ Merged
Merged: 4/8/2014
Merged by: @Seldaek
Base:
master← Head:master📝 Commits (1)
a1e7f2afixed resource check📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/Monolog/Handler/StreamHandler.php(+1 -1)📄 Description
If you use the logger in a multithreaded php application based on pthreads it will show up
fwrite() expects parameter 1 to be resource, integer givenwhen doing logs. This comes because a stream resource taken to a thread context won't be null. The fix is to do a explicit check if it isn't a resource. I'am on the integration of monolog to ourPHP WebServerat the moment so it would be nice if you can accept that pull request shortly :)Cheers!
Johann
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.