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
This commit is contained in:
Jakub Vrana 2007-08-16 14:16:20 +00:00
parent 5414c4b5dc
commit 10e674d4ad

View file

@ -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 @@ Hello
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>