Call to protected method Zend_Config::_loadFileErrorHandler() #1242

Closed
robocoder opened this Issue Mar 24, 2010 · 1 comment

1 participant

@robocoder

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.

@robocoder

(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

@robocoder robocoder added this to the Piwik 0.6 milestone Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment