Comments By: Jonathan Ford
-
"Note: This might be a solved bug; however, I am stuck using php5.1 on MAMP and this is an annoyance for me. The __toString() method provides a nifty alternative to the cryptic "Object id #1". One would expect that coercing an instance of an object into a string would thus call __toString()--it doesn't. " Yep, I think that bug's been solved :-). At least, it seems to work for me with my projects (PHP 5.2.1). Thanks for this very helpful article! There's no point going on about how amazing any language is (*cough* Ruby *cough*) without looking at the flaws and problems with it.
posted on Aug 19, 2007 at 2:57pm | context
