ID:               29400
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marcelo at beteltecnologia dot com dot br
-Status:           Open
+Status:           Feedback
 Bug Type:         Class/Object related
 Operating System: Windows XP
 PHP Version:      4.3.8
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2004-07-26 23:49:33] marcelo at beteltecnologia dot com dot br

Description:
------------
I have a method that receives a object by reference. Despite the method
definition defines that the parameter should be taken by reference it is
being treated as it were a copy. 

Reproduce code:
---------------
class Myclass extends MyOtherClass
{

function mymethod(&$myobj) {
        $myobj->mymodifier('Parameter');
}
}

Expected result:
----------------
the 'mymodifier' method of the original 'myobj' object should be
called.

Actual result:
--------------
PHP is calling the method 'mymofifier' for a copy of the instance of
'myobj'. 

I used Call-time pass-by reference, to avoid the problem but, since
this technique is deprecated I am reporting the bug.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29400&edit=1

Reply via email to