Bug #19398
closed
callUserFunction and getUserObj uses different object pools
Added by Christian Jul Jensen about 16 years ago.
Updated over 7 years ago.
Sprint Focus:
Remote Sprint
Description
Both ways of instantiating an object has the possibility to instantitate the object as (pseudo) singleton by prefixing the classname with &.
But they use different object pools, namely:
$GLOBALS['T3_VAR']['callUserFunction'] and $GLOBALS['T3_VAR']['getUserObj']
This prohibits the use of references to objects across different hooks/callbacks
(issue imported from #M9458)
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
The methods callUserFunction and getUserObj
have been moved into the file typo3/sysext/core/Classes/Utility/GeneralUtility.php.
The problem remains the same.
- Status changed from Needs Feedback to New
- Assignee set to Mathias Schreiber
- Target version set to 7.1 (Cleanup)
- Is Regression set to No
- Sprint Focus set to Remote Sprint
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Target version changed from 7.5 to 7 LTS
- Target version deleted (
7 LTS)
- Status changed from New to Closed
Fixed in master, as the SingletonInterface is in place for this.
Also available in: Atom
PDF