[TYPO3-core] '=&' can be found all over the code basis

Philipp Gampe philipp.gampe at typo3.org
Tue Oct 2 16:05:14 CEST 2012


Hi Jigal van Hemert,

Jigal van Hemert wrote:

> Also not completely true. Object variables don't contain the actual
> object as value, but contain an identifier which allows PHP to find the
> actual object. If you pass, return or assign an object to another
> variable the identifier is copied.
> References are aliases of the same variable.
> 
> http://www.php.net/manual/en/language.oop5.references.php

Thanks for clarification.

Thus PHP just behaves like C in this regards... not really surprising.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!



More information about the TYPO3-team-core mailing list