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