Project

General

Profile

Actions

Bug #19398

closed

callUserFunction and getUserObj uses different object pools

Added by Christian Jul Jensen about 16 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-10-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #77243: Deprecate GeneralUtility::getUserObj()ClosedMathias Brodala2016-07-25

Actions
Actions #1

Updated by Alexander Opitz over 11 years ago

  • 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)?

Actions #2

Updated by Franz Holzinger over 11 years ago

The methods callUserFunction and getUserObj
have been moved into the file typo3/sysext/core/Classes/Utility/GeneralUtility.php.
The problem remains the same.

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from Needs Feedback to New
Actions #4

Updated by Mathias Schreiber almost 10 years ago

  • Assignee set to Mathias Schreiber
  • Target version set to 7.1 (Cleanup)
  • Is Regression set to No
  • Sprint Focus set to Remote Sprint
Actions #5

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #6

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #7

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #8

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (7 LTS)
Actions #9

Updated by Benni Mack over 7 years ago

  • Status changed from New to Closed

Fixed in master, as the SingletonInterface is in place for this.

Actions

Also available in: Atom PDF