cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[2.0.0] Phalcon\Logger\Adapter\File: 'mode' MUST be specified if options are passed

Open loopsframework opened this issue 11 years ago • 0 comments

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.

loopsframework avatar Feb 09 '15 04:02 loopsframework