[TYPO3-core] RFC #12022: PHP-5.3 warning about missing references with some extensions

Ingmar Schlecht ingmar at typo3.org
Fri Nov 6 16:07:25 CET 2009


Franz Holzinger schrieb:
>  Why doesn't it make sense to save memory space? TYPO3 sites often run
> into a lack of memory.

PHP doesn't really copy variables when you copy them, it always makes
references by default internally, and only converts them into copies
when you actually change the variable. Therefore the paradox result is
that references are actually slower than copies.

That's why it doesn't make sense to use a reference there. Also,
references can lead to quite unexpected things sometimes.

cheers
Ingmar


More information about the TYPO3-team-core mailing list