#33888 [Bgs]: join does not use objects' __toString() fcn
| From: | helly@php.net | Date: | Wed, 27 Jul 2005 19:31:03 +0000 |
| Subject: | #33888 [Bgs]: join does not use objects' __toString() fcn | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82555@lists.php.net to get a copy of this message | ||
ID: 33888
Updated by: helly@php.net
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] tony2001@php.net
"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