Zend Framework

Bogus formatter given to Zend/Log/Writer/Abstract.php should throw an exception

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.6
  • Fix Version/s: 1.10.7
  • Component/s: Zend_Log
  • Labels:
    None

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

Issue Links

Activity

Hide
Thomas Weidner added a comment -

Reassigned to component maintainer

Show
Thomas Weidner added a comment - Reassigned to component maintainer
Hide
Ramon Henrique Ornelas added a comment -

Fixed in trunk r22510

Show
Ramon Henrique Ornelas added a comment - Fixed in trunk r22510
Hide
Ramon Henrique Ornelas added a comment -

Merged in branch-1.10 r22512.

Show
Ramon Henrique Ornelas added a comment - Merged in branch-1.10 r22512.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: