<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><br>Hi Enrico,<br><br>I have a small concern to share with the fix you have mentioned:<br><br><span style="font-style: italic;">this patch fixes some missing __toString() methods which cause</span><br style="font-style: italic;"><span style="font-style: italic;">vt to crash when certain objects are accessed as strings.<br><br></span>PHP 5.2 requires __toString() method if an object should be contactenated with string,<br>this was not the constraint with PHP 5.1 <br><br>We use string contacts in debug statements, so adding __toString() to return<br>a constant value from a object might not be a good way.<br><br>Our patch for PHP 5.2 (vtiger 5.0.3) handles this problem by adding get_class($object) in the<br>string concatenation, this way we don't change the class definition entirely.<br><br>get_class($object) returns string which can be concatenated without problem.<br><br>Some places we have replaced $user object with $user-&gt;user_name instead of<br>get_class($user) because having user_name information is more useful.<br><br>We have integrated such fix in our latest developement branch of vtiger 5.0.4.<br><br>Hope this information was useful.<br><br>Regards,<br>Prasad<br>vtiger Team <br></body></html>