Opened 4 years ago

Closed 4 years ago

#1242 closed Bug (fixed)

Call to protected method Zend_Config::_loadFileErrorHandler()

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: Piwik 0.6
Component: Core Keywords:
Cc: Sensitive: no

Description

http://forum.piwik.org/index.php?showtopic=6851

Depending on the PHP version, if parse_ini_file() fails, the set_error_handler(array($obj, $method)) may not work where $method is a protected function.

The workaround is to create a public method for the error handler.

Change History (1)

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1989]) fixes #1242 - looks like a context bug in PHP because the method is a member of $this class (subclass of Zend_Config), and so should have access to its protected methods

Note: See TracTickets for help on using tickets.