[TYPO3-core] RFC: Avoid double checking of match-conditions

René Fritz rene at typo3.org
Fri Feb 17 11:24:33 CET 2006


> >You can enhance this by passing the big arrays only as references:

I thought this too, but it's not true. PHP only pass a "pointer" no matter if 
you pass by value or by reference. When you actually change the array a copy 
of the changed values will be made.

I suggest not to use references when not needed. This can cause strange bugs 
and is harder to overview.

René

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list