vrana           Thu Aug 16 14:16:21 2007 UTC

  Modified files:              
    /phpdoc/en/language/oop5    magic.xml 
  Log:
  Converting objects without __toString() since PHP 5.2.0
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/magic.xml?r1=1.16&r2=1.17&diff_format=u
Index: phpdoc/en/language/oop5/magic.xml
diff -u phpdoc/en/language/oop5/magic.xml:1.16 
phpdoc/en/language/oop5/magic.xml:1.17
--- phpdoc/en/language/oop5/magic.xml:1.16      Fri Jul 13 17:56:19 2007
+++ phpdoc/en/language/oop5/magic.xml   Thu Aug 16 14:16:20 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
+<!-- $Revision: 1.17 $ -->
  <sect1 xml:id="language.oop5.magic" xmlns="http://docbook.org/ns/docbook";>
   <title>Magic Methods</title>
   <para>
@@ -143,6 +143,8 @@
     It is worth noting that before PHP 5.2.0 the <literal>__toString</literal>
     method was only called when it was directly combined with
     <function>echo</function> or <function>print</function>.
+    Since PHP 5.2.0, converting objects without <literal>__toString</literal>
+    method to string would cause <constant>E_RECOVERABLE_ERROR</constant>.
    </para>
   </sect2>
 

Reply via email to