ID:               37702
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at bouchery dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
-Operating System: All
+Operating System: *
-PHP Version:      5.1.4
+PHP Version:      5.1.*
-Assigned To:      
+Assigned To:      helly
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Cannot be fixed in 5.1 and is already fixed in HEAD and 5.2


Previous Comments:
------------------------------------------------------------------------

[2006-06-05 15:29:08] php at bouchery dot com

Description:
------------
Currently, __toString work ONLY with echo/print, and it's very
restrictive.

It could be very interresting to allow toString working with strval()
to avoid this :

<?php
if( is_object($var) ) $text = 'var = ' . $var->__toString();
else $text = 'var = ' . $var;
?>

Expected result:
----------------
<?php
$text = 'var = ' . strval($var);
?>

Or better :

<?php
$text = 'var = ' . $var;
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37702&edit=1

Reply via email to