Reply to Re: PDO catchable fatal error on prepare->execute()

Your name:

Reply:


Posted by gosha bine on 06/21/07 14:57

On 21.06.2007 15:38 gp wrote:
> ******************************************************************************************************************************
> Catchable fatal error: Object of class stdClass could not be
> converted to string in <filename> on line <line>
> ******************************************************************************************************************************
>
> I can only find the change log for PHP 5.2 identifying this type of
> error, nothing on how to fix it. I have updated PHP to 5.2.3 on
> Apache 2.2.x on a BSD Box 6.x If some one could explain to me what I
> am doing wrong, and what I need to do to fix it that would be swell.
> A point of note is that my $dbh is being created in my class
> constructor as a private. The method that is calling the prepare and
> execute statements is a public. I don't thing I'm trying to do
> anything new or exotic, I don't think I'm trying to convert the object
> to a string, just execute the query statement....
> [snip]

Someone on this group has argued this (quite stupid) "improvement" in
php 5.2 should be good... a nice illustration.

Minimize your problem code and file a bug on php.net, there's nothing
more you can do about this.


--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация