mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 08:35:53 +03:00
[GH-ISSUE #796] Filename "0" #301
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#301
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?
Originally created by @noplanman on GitHub (May 26, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/796
When trying to log to a file called
0I get the following:Fatal error: Uncaught exception 'LogicException' with message 'Missing stream url, the stream can not be opened. This may be caused by a premature call to close().'This happens because the string
"0"is regarded asfalsehere:https://github.com/Seldaek/monolog/blob/master/src/Monolog/Handler/StreamHandler.php#L84
@Seldaek commented on GitHub (May 26, 2016):
Curious why you'd call a log file '0' but anyway I'll push a fix as it's quite an easy one.