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

MultiSites Plugin API: String typecast does not invoke magical __toString method for PHP < 5.2.0 #2953

Closed
peterbo opened this issue Feb 18, 2012 · 1 comment
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@peterbo
Copy link
Contributor

peterbo commented Feb 18, 2012

In PHP Version < 5.2.0, a String-typecast of an object does not invoke its magic toString methods and returns only the ID of the Object. Reported in http://forum.piwik.org/read.php?5,85638,85880#msg-85880. Piwik then fails with an Exception.

@peterbo
Copy link
Contributor Author

peterbo commented Feb 18, 2012

(In [5867]) Fixes #2953, manually invoke object's toString()-Method instead of typecasting it.

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