Objects are passed by reference automatically (bug #35595)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@202392 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-12-08 09:30:43 +00:00
parent ffbacd15e9
commit 89c0e893c0

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.156 $ -->
<!-- $Revision: 1.157 $ -->
<chapter id="language.types">
<title>Types</title>
@ -2342,7 +2342,7 @@ call_user_func(array('MyClass', 'myCallbackMethod'));
// Type 3: Object method call
$obj = new MyClass();
call_user_func(array(&$obj, 'myCallbackMethod'));
call_user_func(array($obj, 'myCallbackMethod'));
?>
]]>
</programlisting>