Complete the callback example with a note concerning php4 users

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@226917 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Etienne Kneuss 2007-01-10 15:01:42 +00:00
parent 7c14eb2222
commit f94e9794f0

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.172 $ -->
<!-- $Revision: 1.173 $ -->
<chapter id="language.types">
<title>Types</title>
@ -2403,7 +2403,14 @@ call_user_func(array($obj, 'myCallbackMethod'));
</programlisting>
</example>
</para>
<note>
<simpara>
In PHP4, you will have to use a reference to create a callback that
points to the actual object, and not a copy of it. For more details,
see <link linkend="language.references">References Explained</link>.
</simpara>
</note>
</sect2>
<sect2 id="language.types.void">