Issues

ZF-6085: Bogus formatter given to Zend/Log/Writer/Abstract.php should throw an exception

Issue Type: Bug Created: 2009-03-22T01:47:16.000+0000 Last Updated: 2010-06-30T18:54:36.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Sergio Vaccaro (hujuice) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Log

Related issues: - ZF-6086

Attachments:

Description

If I give a bogus formatter to a writer, the formatter is accepted silently.

If I try to use the writer, a fatal error (eg "Fatal error: Call to a member function format() on a non-object in /usr/share/php5/Zend/Log/Writer/Stream.php on line 93") is outputted.

I think that the fatal error should be avoided and an exception should be thrown when the bogus formatter is set.

Regards, HUjuice

Comments

Posted by Thomas Weidner (thomas) on 2010-03-21T10:25:38.000+0000

Reassigned to component maintainer

Posted by Ramon Henrique Ornelas (ramon) on 2010-06-30T18:41:09.000+0000

Fixed in trunk r22510

Posted by Ramon Henrique Ornelas (ramon) on 2010-06-30T18:54:36.000+0000

Merged in branch-1.10 r22512.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts