From 10e674d4ad6ea0becb0c3fa3a64788640fbbc647 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 16 Aug 2007 14:16:20 +0000 Subject: [PATCH] Converting objects without __toString() since PHP 5.2.0 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241320 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/magic.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index 3c0521aba1..25d6fa2bbf 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -1,5 +1,5 @@ - + Magic Methods @@ -143,6 +143,8 @@ Hello It is worth noting that before PHP 5.2.0 the __toString method was only called when it was directly combined with echo or print. + Since PHP 5.2.0, converting objects without __toString + method to string would cause E_RECOVERABLE_ERROR.