NYCPHP Meetup

[nycphp-talk] PHP 5.3 Problem - Object Creation problem

Daniel Convissor danielc at analysisandsolutions.com
Wed Aug 22 20:48:22 EDT 2007


Hey Jeff!

On Tue, Aug 21, 2007 at 09:39:47AM -0400, jeff mailings wrote:
> Anyone know the best way to handle this error? "PHP Catchable fatal error:
> Object of class Database could not be converted to string"

Beside the __toString() workaround mentioned, I'd get to the root of the 
matter: objects are not strings, so fix the code where you're using them 
as such.  Are you, by chance, using an object as an array key?

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list