ID: 33888 Updated by: [EMAIL PROTECTED] Reported By: wckits at rit dot edu Status: Bogus Bug Type: Class/Object related -Operating System: SunOS +Operating System: * -PHP Version: 5.0.3 +PHP Version: 5.1.* New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Atm (5.0, 5.1) __toString() is only being support by echo and print (see above). We decided to look into this issue after 5.1 is out. Previous Comments: ------------------------------------------------------------------------ [2005-07-27 18:27:30] [EMAIL PROTECTED] "It is worth noting that the __toString method will only be called when it is directly combined with echo() or print()." http://www.php.net/manual/en/language.oop5.magic.php ------------------------------------------------------------------------ [2005-07-27 18:24:39] wckits at rit dot edu Description: ------------ Calling join(",",$array_of_objects) will return "object,object,object..." even if all of those objects have toString functions defined. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33888&edit=1