Create a public __toString() function within your Database class. It can be
something as simple as:
public function __toString() {
return 'Object';
}
This is a new as of 5.2 - for some reason they've removed implicit
object-to-string conversion. You must provide explicit __toString if you're
printing or concatenating your objects.
- jake
On 8/21/07, jeff mailings <[EMAIL PROTECTED]> wrote:
>
> Anyone know the best way to handle this error? "PHP Catchable fatal error:
> Object of class Database could not be converted to string"
>
> I've got some old class modules that I'm trying to run under PHP 5.3.
>
>
> Jeff Siegel
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php