Issue Feature Closed

#25407missing method to free getUserObj

Franz Holzinger 03/28/11, 17:18 updated 05/10/17, 20:53

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.