In PHP 5.2 the toString() method is used to convert an object to a string. In PHP 5.1 the toString() method is used to convert an object to a string but only when print or echo is called on the object. So, doing something like this won't work in 5.1:

foo = bar($object." won't convert object to string");