From 89c0e893c0dfd61f09084b988617cd66eab32ca4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 8 Dec 2005 09:30:43 +0000 Subject: [PATCH] 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 --- language/types.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language/types.xml b/language/types.xml index 8749856652..80d7974bee 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -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')); ?> ]]>