cphalcon
cphalcon copied to clipboard
[2.0.0] Phalcon\Logger\Adapter\File: 'mode' MUST be specified if options are passed
Behavior: When creating a Phalcon\Logger\Adapter\File and passing an empty array as $options, fopen fails and leads to a 'Can't open log file at /path/to/file' exception.
Expected behavior: mode defaults to 'ab' as in 1.x.x branch (or: 'Logger must be opened in append or write mode' exception should be thrown instead)
File: phalcon/logger/adapter/file.zep, around line 76
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.