[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-dev] Objects passed explicitely by reference in WorkspaceSelector

Hi Fabrizio,

Fabrizio Branca schrieb:
> Hi there,
> is there a reason why objects are passed by reference explicitely in
> class WorkspaceSelector (and in interface backend_toolbarItem)?
> public function toggleWorkspacePreview($parameters = array(), TYPO3AJAX
> &$ajaxObj = null) { [...]

I guess that these kind of code fragements are from the time when we
still supported PHP4. In PHP5 all objects are references and thus you're
right that using the reference operator here does not make any sense.

Oliver Hader
TYPO3 Release Manager 4.3
TYPO3-dev mailing list
[email protected]