Actions
Feature #25407
closedmissing method to free getUserObj
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-28
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
When you use t3lib_div::getUserObj('&classname') then the object is stored as peristant.
However on the end of the extension you should also free the used space. There is no method to free the space again. If the extension is called a second time, then the objects are already there. However the objects should be empty.
public static function unsetUserObj($classRef) {
if (isset($GLOBALS['T3_VAR']['getUserObj'][$classRef])) {
unset($GLOBALS['T3_VAR']['getUserObj'][$classRef]);
}
}
(issue imported from #M18052)
Actions