Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

robocoder opened this issue Mar 24, 2010 · 1 comment
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@robocoder
Copy link
Contributor

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
Copy link
Contributor Author

(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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

1 participant