PHP 5.2: compatibility problems
December 26th, 2006
Upgrading from PHP 5.1 to PHP 5.2 comes with a nasty surprise as I experienced earlier. The problem manifests itself as the following error message.
Catchable fatal error: Object of class foo could not be converted to string in [location] on line 17
To fix is to add a __toString() method to class foo.
Sorry, comments are closed for this article.