<html><body bgcolor="#FFFFFF"><div>David I an curiuse as to why you upgraded to 5.2 and not 5.2.6 ? Was that the distro and if so what distro ?</div><div><br></div><div>Wade<br><br>Sent from my iPhone</div><div><br>On Nov 21, 2008, at 2:25 PM, "David Champion" &lt;<a href="mailto:dchampion@visionary.com">dchampion@visionary.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>

<!-- Converted from text/plain format -->

<p><font size="2">I ran across an issue in an existing system, where a server got upgraded<br>
to PHP 5.2.0 from 5.1.4, and it started throwing this error:<br>
<br>
"Catchable fatal error: Object of class stdClass could not be converted<br>
to string in.."<br>
<br>
Here's a thread that explains and / or complains about the issue:<br>
<br>
<a href="http://bugs.php.net/bug.php?id=41221"><a href="http://bugs.php.net/bug.php?id=41221">http://bugs.php.net/bug.php?id=41221</a></a><br>
<br>
In my case, I was able to do a quick fix - it was referencing the ADODB<br>
result set's method FetchField like this:<br>
<br>
$field = $this->results->FetchField($col);<br>
<br>
I changed it to this:<br>
<br>
$field = $this->results->FetchField[$col];<br>
<br>
... and it fixed the issue, since it's now returning the array element<br>
instead of making a function call that returns a string.<br>
<br>
Anyway, just something some of you may need to look out for when<br>
upgrading PHP. Looking around for solutions, I saw that this affects<br>
various 3rd party apps &amp; libraries like forums and shopping cart<br>
applications, so... be sure and test before you upgrade.<br>
<br>
Somewhere along the way, among some documentation about __toString() and<br>
the other "magic functions", there was a mention that this behavior may<br>
change in the future too.<br>
<br>
-dc<br>
<br>
<br>
_______________________________________________<br>
ciapug mailing list<br>
<a href="mailto:ciapug@cialug.org"><a href="mailto:ciapug@cialug.org">ciapug@cialug.org</a></a><br>
<a href="http://cialug.org/mailman/listinfo/ciapug"><a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a></a><br>
</font>
</p>


</div></blockquote></body></html>