[ 
https://issues.apache.org/jira/browse/LOG4PHP-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729415#action_12729415
 ] 

Knut Urdalen commented on LOG4PHP-53:
-------------------------------------

Just a note from me: Normally it's fine to remove all references, and if 
working with object handles it's not a problem. However if you potentially can 
have large amount of data as plain PHP arrays, you mostly do better by using 
"Pass by Reference" to not copy the whole data structure around and consume 
less memory. I think we should be aware of these things in a lightweight 
logging framework.

For the record:

* References Explained: http://www.php.net/manual/en/language.references.php
* Passing by Reference: 
http://www.php.net/manual/en/language.references.pass.php


> Remove references
> -----------------
>
>                 Key: LOG4PHP-53
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-53
>             Project: Log4php
>          Issue Type: Improvement
>          Components: Code
>    Affects Versions: 2.0
>            Reporter: Christian Grobmeier
>             Fix For: 2.0
>
>
> According to this:
> http://www.php.net/manual/en/language.oop5.references.php
> PHP treats variable passing like in Java now. This would mean that only 
> object identifiers are passed around, not the object copied. Having that 
> beeing that, we can remove the incosistent & references from the code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to