mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
5414c4b5dc
commit
10e674d4ad
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue