[TASK] CGL violations "AssignmentArithmeticAndComparisonSpace"
authorRoland Waldner <most.wanted@gmx.at>
Mon, 1 Oct 2012 17:17:02 +0000 (19:17 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 28 Oct 2012 18:55:49 +0000 (19:55 +0100)
Change-Id: I9970ef5e2087233db095a1d296261c6eb06def18
Resolves: #41498
Releases: 6.0
Reviewed-on: http://review.typo3.org/15198
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
37 files changed:
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/File/EditFileController.php
typo3/sysext/backend/Classes/Form/DataPreprocessor.php
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Form/Element/SuggestDefaultReceiver.php
typo3/sysext/backend/Classes/Form/Element/SuggestElement.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/backend/Classes/User/ExtDirect/BackendUserSettingsDataProvider.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/core/Classes/Charset/CharsetConverter.php
typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php
typo3/sysext/core/Classes/Database/QueryGenerator.php
typo3/sysext/core/Classes/Database/SqlParser.php
typo3/sysext/core/Classes/Extension/ExtensionManager.php
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Classes/Resource/Driver/DriverRegistry.php
typo3/sysext/core/Classes/Utility/ArrayUtility.php
typo3/sysext/core/Classes/Utility/ClientUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Parser/XmlParserFactory.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
typo3/sysext/indexed_search/Classes/Hook/MysqlFulltextIndexHook.php
typo3/sysext/lowlevel/Classes/CleanFlexformCommand.php
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php
typo3/sysext/rsaauth/Classes/Hook/UserSetupHook.php
typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaApi.php
typo3/sysext/t3editor/Classes/T3Editor.php
typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php

index c404119..337bd98 100644 (file)
@@ -675,7 +675,7 @@ class BackendController {
         * @return void
         */
        protected function executeHook($identifier, array $hookConfiguration = array()) {
-               $options =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php'];
+               $options = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php'];
                if (isset($options[$identifier]) && is_array($options[$identifier])) {
                        foreach ($options[$identifier] as $hookFunction) {
                                \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($hookFunction, $hookConfiguration, $this);
index f4b467d..669fd28 100644 (file)
@@ -446,7 +446,7 @@ class NewContentElementController {
                                foreach ($wizardItems[$key]['tt_content_defValues'] as $fN => $fV) {
                                        if (is_array($GLOBALS['TCA']['tt_content']['columns'][$fN])) {
                                                // Get information about if the field value is OK:
-                                               $config =$GLOBALS['TCA']['tt_content']['columns'][$fN]['config'];
+                                               $config = &$GLOBALS['TCA']['tt_content']['columns'][$fN]['config'];
                                                $authModeDeny = $config['type'] == 'select' && $config['authMode'] && !$GLOBALS['BE_USER']->checkAuthMode('tt_content', $fN, $fV, $config['authMode']);
                                                $isNotInKeepItems = count($keepItems) && !in_array($fV, $keepItems);
                                                if ($authModeDeny || $fN == 'CType' && in_array($fV, $removeItems) || $isNotInKeepItems) {
index 2e9d654..68399c8 100644 (file)
@@ -104,7 +104,7 @@ class EditFileController {
                $this->content = $this->doc->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.pagetitle'));
                // Hook before compiling the output
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'])) {
-                       $preOutputProcessingHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'];
+                       $preOutputProcessingHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'];
                        if (is_array($preOutputProcessingHook)) {
                                $hookParameters = array(
                                        'content' => &$this->content,
@@ -147,7 +147,7 @@ class EditFileController {
                $pageContent .= $code;
                // Hook after compiling the output
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'])) {
-                       $postOutputProcessingHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'];
+                       $postOutputProcessingHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'];
                        if (is_array($postOutputProcessingHook)) {
                                $hookParameters = array(
                                        'pageContent' => &$pageContent,
index 2648e28..20cf33b 100644 (file)
@@ -872,7 +872,7 @@ class DataPreprocessor {
         */
        public function procItems($items, $itemsProcFuncTSconfig, $config, $table, $row, $field) {
                $params = array();
-               $params['items'] =$items;
+               $params['items'] = &$items;
                $params['config'] = $config;
                $params['TSconfig'] = $itemsProcFuncTSconfig;
                $params['table'] = $table;
index fadca69..2c48afa 100644 (file)
@@ -127,9 +127,9 @@ class InlineElement {
         */
        public function init(&$tceForms) {
                $this->fObj = $tceForms;
-               $this->backPath =$tceForms->backPath;
-               $this->prependFormFieldNames =$this->fObj->prependFormFieldNames;
-               $this->prependCmdFieldNames =$this->fObj->prependCmdFieldNames;
+               $this->backPath = &$tceForms->backPath;
+               $this->prependFormFieldNames = &$this->fObj->prependFormFieldNames;
+               $this->prependCmdFieldNames = &$this->fObj->prependCmdFieldNames;
                $this->inlineStyles['margin-right'] = '5';
                $this->initHookObjects();
        }
@@ -143,7 +143,7 @@ class InlineElement {
        protected function initHookObjects() {
                $this->hookObjects = array();
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['tceformsInlineHook'])) {
-                       $tceformsInlineHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['tceformsInlineHook'];
+                       $tceformsInlineHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['tceformsInlineHook'];
                        if (is_array($tceformsInlineHook)) {
                                foreach ($tceformsInlineHook as $classData) {
                                        $processObject = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($classData);
@@ -571,8 +571,8 @@ class InlineElement {
                // Initialize:
                $cells = array();
                $isNewItem = substr($rec['uid'], 0, 3) == 'NEW';
-               $tcaTableCtrl =$GLOBALS['TCA'][$foreign_table]['ctrl'];
-               $tcaTableCols =$GLOBALS['TCA'][$foreign_table]['columns'];
+               $tcaTableCtrl = &$GLOBALS['TCA'][$foreign_table]['ctrl'];
+               $tcaTableCols = &$GLOBALS['TCA'][$foreign_table]['columns'];
                $isPagesTable = $foreign_table == 'pages' ? TRUE : FALSE;
                $isOnSymmetricSide = \TYPO3\CMS\Core\Database\RelationHandler::isOnSymmetricSide($parentUid, $config, $rec);
                $enableManualSorting = $tcaTableCtrl['sortby'] || $config['MM'] || !$isOnSymmetricSide && $config['foreign_sortby'] || $isOnSymmetricSide && $config['symmetric_sortby'] ? TRUE : FALSE;
@@ -1194,7 +1194,7 @@ class InlineElement {
                $parent = $this->getStructureLevel(-1);
                $current = $this->inlineStructure['unstable'];
                $jsonArray = array('scriptCall' => array());
-               $jsonArrayScriptCall =$jsonArray['scriptCall'];
+               $jsonArrayScriptCall = &$jsonArray['scriptCall'];
                $nameObject = $this->inlineNames['object'];
                $nameObjectForeignTable = $nameObject . self::Structure_Separator . $current['table'];
                // Get the name of the field pointing to the original record:
@@ -1248,7 +1248,7 @@ class InlineElement {
                // Only do some action if the top record and the current record were saved before
                if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($top['uid'])) {
                        $inlineView = (array) unserialize($GLOBALS['BE_USER']->uc['inlineView']);
-                       $inlineViewCurrent =$inlineView[$top['table']][$top['uid']];
+                       $inlineViewCurrent = &$inlineView[$top['table']][$top['uid']];
                        $expandUids = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $expand);
                        $collapseUids = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $collapse);
                        // Set records to be expanded
@@ -2221,7 +2221,7 @@ class InlineElement {
                                                        }
                                                        // Add new expanded child records to UC (if any):
                                                        if (count($newExpandedChildren)) {
-                                                               $inlineViewCurrent =$inlineView[$topTable][$topUid][$childTable];
+                                                               $inlineViewCurrent = &$inlineView[$topTable][$topUid][$childTable];
                                                                if (is_array($inlineViewCurrent)) {
                                                                        $inlineViewCurrent = array_unique(array_merge($inlineViewCurrent, $newExpandedChildren));
                                                                } else {
index 84037b9..76df5af 100644 (file)
@@ -151,7 +151,7 @@ class SuggestDefaultReceiver {
         */
        public function queryTable(&$params, $recursionCounter = 0) {
                $rows = array();
-               $this->params =$params;
+               $this->params = &$params;
                $start = $recursionCounter * 50;
                $this->prepareSelectStatement();
                $this->prepareOrderByStatement();
index 0eca75d..3179832 100644 (file)
@@ -49,7 +49,7 @@ class SuggestElement {
         * @return void
         */
        public function init(&$tceForms) {
-               $this->TCEformsObj =$tceForms;
+               $this->TCEformsObj = &$tceForms;
        }
 
        /**
index 0ec6085..3ccdd9a 100644 (file)
@@ -698,7 +698,7 @@ class FormEngine {
                        // Load the full TCA for the table.
                        \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($table);
                        // Get dividers2tabs setting from TCA of the current table:
-                       $dividers2tabs =$GLOBALS['TCA'][$table]['ctrl']['dividers2tabs'];
+                       $dividers2tabs = &$GLOBALS['TCA'][$table]['ctrl']['dividers2tabs'];
                        // Load the description content for the table.
                        if ($this->edit_showFieldHelp || $this->doLoadTableDescr($table)) {
                                $GLOBALS['LANG']->loadSingleTableDescription($table);
@@ -2948,7 +2948,7 @@ function ' . $evalData . '(value) {
                $PA['field'] = $field;
                $PA['row'] = $row;
                $PA['parameters'] = isset($PA['fieldConf']['config']['parameters']) ? $PA['fieldConf']['config']['parameters'] : array();
-               $PA['pObj'] =$this;
+               $PA['pObj'] = &$this;
                return \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($PA['fieldConf']['config']['userFunc'], $PA, $this);
        }
 
@@ -3810,7 +3810,7 @@ function ' . $evalData . '(value) {
                }
                // Traverse wizards:
                if (is_array($wizConf) && !$this->disableWizards) {
-                       $parametersOfWizards =$specConf['wizards']['parameters'];
+                       $parametersOfWizards = &$specConf['wizards']['parameters'];
                        foreach ($wizConf as $wid => $wConf) {
                                if (substr($wid, 0, 1) != '_' && (!$wConf['enableByTypeConfig'] || is_array($parametersOfWizards) && in_array($wid, $parametersOfWizards)) && ($RTE || !$wConf['RTEonly'])) {
                                        // Title / icon:
@@ -3885,7 +3885,7 @@ function ' . $evalData . '(value) {
                                                                        break;
                                                                case 'userFunc':
                                                                        // Reference set!
-                                                                       $params['item'] =$item;
+                                                                       $params['item'] = &$item;
                                                                        $params['icon'] = $icon;
                                                                        $params['iTitle'] = $iTitle;
                                                                        $params['wConf'] = $wConf;
@@ -3894,7 +3894,7 @@ function ' . $evalData . '(value) {
                                                                        break;
                                                                case 'slider':
                                                                        // Reference set!
-                                                                       $params['item'] =$item;
+                                                                       $params['item'] = &$item;
                                                                        $params['icon'] = $icon;
                                                                        $params['iTitle'] = $iTitle;
                                                                        $params['wConf'] = $wConf;
@@ -4429,7 +4429,7 @@ function ' . $evalData . '(value) {
         */
        public function procItems($items, $iArray, $config, $table, $row, $field) {
                $params = array();
-               $params['items'] =$items;
+               $params['items'] = &$items;
                $params['config'] = $config;
                $params['TSconfig'] = $iArray;
                $params['table'] = $table;
index b9afa1a..96dc466 100644 (file)
@@ -319,7 +319,7 @@ class LiveSearch {
                if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->queryString)) {
                        foreach ($fieldsToSearchWithin as $fieldName) {
                                if ($fieldName == 'uid' || $fieldName == 'pid' || isset($GLOBALS['TCA'][$tableName]['columns'][$fieldName])) {
-                                       $fieldConfig =$GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
+                                       $fieldConfig = &$GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
                                        // Assemble the search condition only if the field is an integer, or is uid or pid
                                        if ($fieldName == 'uid' || $fieldName == 'pid' || $fieldConfig['type'] == 'input' && $fieldConfig['eval'] && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($fieldConfig['eval'], 'int')) {
                                                $whereParts[] = $fieldName . '=' . $this->queryString;
@@ -330,7 +330,7 @@ class LiveSearch {
                        $like = '\'%' . $GLOBALS['TYPO3_DB']->escapeStrForLike($GLOBALS['TYPO3_DB']->quoteStr($this->queryString, $tableName), $tableName) . '%\'';
                        foreach ($fieldsToSearchWithin as $fieldName) {
                                if (isset($GLOBALS['TCA'][$tableName]['columns'][$fieldName])) {
-                                       $fieldConfig =$GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
+                                       $fieldConfig = &$GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
                                        // Check whether search should be case-sensitive or not
                                        $format = 'LCASE(%s) LIKE LCASE(%s)';
                                        if (is_array($fieldConfig['search'])) {
@@ -472,4 +472,4 @@ class LiveSearch {
 }
 
 
-?>
+?>
\ No newline at end of file
index 2ab0bbc..02b441a 100644 (file)
@@ -716,7 +716,7 @@ class DocumentTemplate {
        public function startPage($title, $includeCsh = TRUE) {
                // hook pre start page
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'])) {
-                       $preStartPageHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'];
+                       $preStartPageHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook'];
                        if (is_array($preStartPageHook)) {
                                $hookParameters = array(
                                        'title' => &$title
@@ -846,7 +846,7 @@ class DocumentTemplate {
                }
                // hook for additional headerData
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preHeaderRenderHook'])) {
-                       $preHeaderRenderHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preHeaderRenderHook'];
+                       $preHeaderRenderHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preHeaderRenderHook'];
                        if (is_array($preHeaderRenderHook)) {
                                $hookParameters = array(
                                        'pageRenderer' => &$this->pageRenderer
index c02df62..5f84a42 100644 (file)
@@ -997,16 +997,16 @@ abstract class AbstractTreeView {
         */
        public function setDataFromArray(&$dataArr, $traverse = FALSE, $pid = 0) {
                if (!$traverse) {
-                       $this->data =$dataArr;
+                       $this->data = &$dataArr;
                        $this->dataLookup = array();
                        // Add root
-                       $this->dataLookup[0][$this->subLevelID] =$dataArr;
+                       $this->dataLookup[0][$this->subLevelID] = &$dataArr;
                }
                foreach ($dataArr as $uid => $val) {
                        $dataArr[$uid]['uid'] = $uid;
                        $dataArr[$uid]['pid'] = $pid;
                        // Gives quick access to id's
-                       $this->dataLookup[$uid] =$dataArr[$uid];
+                       $this->dataLookup[$uid] = &$dataArr[$uid];
                        if (is_array($val[$this->subLevelID])) {
                                $this->setDataFromArray($dataArr[$uid][$this->subLevelID], TRUE, $uid);
                        }
@@ -1022,8 +1022,8 @@ abstract class AbstractTreeView {
         * @todo Define visibility
         */
        public function setDataFromTreeArray(&$treeArr, &$treeLookupArr) {
-               $this->data =$treeArr;
-               $this->dataLookup =$treeLookupArr;
+               $this->data = &$treeArr;
+               $this->dataLookup = &$treeLookupArr;
        }
 
 }
index 7e28768..1b94a7c 100644 (file)
@@ -146,9 +146,9 @@ class BackendUserSettingsDataProvider {
         */
        protected function getFromDottedNotation($key) {
                $subkeys = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('.', $key);
-               $array =$GLOBALS['BE_USER']->uc;
+               $array = &$GLOBALS['BE_USER']->uc;
                foreach ($subkeys as $subkey) {
-                       $array =$array[$subkey];
+                       $array = &$array[$subkey];
                }
                return $array;
        }
@@ -163,12 +163,12 @@ class BackendUserSettingsDataProvider {
        protected function setFromDottedNotation($key, $value) {
                $subkeys = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode('.', $key, TRUE);
                $lastKey = $subkeys[count($subkeys) - 1];
-               $array =$GLOBALS['BE_USER']->uc;
+               $array = &$GLOBALS['BE_USER']->uc;
                foreach ($subkeys as $subkey) {
                        if ($subkey === $lastKey) {
                                $array[$subkey] = $value;
                        } else {
-                               $array =$array[$subkey];
+                               $array = &$array[$subkey];
                        }
                }
        }
index 0bd360d..6a2ef48 100644 (file)
@@ -1195,7 +1195,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                $infoArr = array();
                $drawItem = TRUE;
                // Hook: Render an own preview of a record
-               $drawItemHooks =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'];
+               $drawItemHooks = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'];
                if (is_array($drawItemHooks)) {
                        foreach ($drawItemHooks as $hookClass) {
                                $hookObject = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($hookClass);
index e7a1a11..a42f9e4 100644 (file)
@@ -1245,7 +1245,7 @@ class CharsetConverter {
                // key = utf8 char (single codepoint), value = utf8 string (codepoint sequence)
                // Note: we use the UTF-8 characters here and not the Unicode numbers to avoid conversion roundtrip in utf8_strtolower/-upper)
                $this->caseFolding['utf-8'] = array();
-               $utf8CaseFolding =$this->caseFolding['utf-8'];
+               $utf8CaseFolding = &$this->caseFolding['utf-8'];
                // a shorthand
                $utf8CaseFolding['toUpper'] = array();
                $utf8CaseFolding['toLower'] = array();
@@ -1409,7 +1409,7 @@ class CharsetConverter {
                }
                // Create ascii only mapping
                $this->toASCII['utf-8'] = array();
-               $ascii =$this->toASCII['utf-8'];
+               $ascii = &$this->toASCII['utf-8'];
                foreach ($decomposition as $from => $to) {
                        $code_decomp = array();
                        while ($code_value = array_shift($to)) {
@@ -1880,14 +1880,14 @@ class CharsetConverter {
                                return $str;
                        }
                        // Do nothing
-                       $map =$this->caseFolding[$charset][$opt];
+                       $map = &$this->caseFolding[$charset][$opt];
                        break;
                case 'ascii':
                        if (!$this->initToASCII($charset)) {
                                return $str;
                        }
                        // Do nothing
-                       $map =$this->toASCII[$charset];
+                       $map = &$this->toASCII[$charset];
                        break;
                default:
                        return $str;
@@ -2148,10 +2148,10 @@ class CharsetConverter {
                $out = '';
                switch ($mode) {
                case 'case':
-                       $map =$this->caseFolding['utf-8'][$opt];
+                       $map = &$this->caseFolding['utf-8'][$opt];
                        break;
                case 'ascii':
-                       $map =$this->toASCII['utf-8'];
+                       $map = &$this->toASCII['utf-8'];
                        break;
                default:
                        return $str;
@@ -2347,14 +2347,14 @@ class CharsetConverter {
                                return $str;
                        }
                        // do nothing
-                       $map =$this->caseFolding[$charset][$opt];
+                       $map = &$this->caseFolding[$charset][$opt];
                        break;
                case 'ascii':
                        if (!$this->initToASCII($charset)) {
                                return $str;
                        }
                        // do nothing
-                       $map =$this->toASCII[$charset];
+                       $map = &$this->toASCII[$charset];
                        break;
                default:
                        return $str;
index f8d17e1..dc37a13 100644 (file)
@@ -173,8 +173,8 @@ class FlexFormTools {
                                                $PA['table'] = $table;
                                                $PA['field'] = $field;
                                                $PA['uid'] = $row['uid'];
-                                               $this->traverseFlexFormXMLData_DS =$dataStruct;
-                                               $this->traverseFlexFormXMLData_Data =$editData;
+                                               $this->traverseFlexFormXMLData_DS = &$dataStruct;
+                                               $this->traverseFlexFormXMLData_Data = &$editData;
                                                // Render flexform:
                                                $this->traverseFlexFormXMLData_recurse($dataStruct['ROOT']['el'], $editData['data'][$sheet][$lang], $PA, 'data/' . $sheet . '/' . $lang);
                                        } else {
index eb805fe..8786314 100644 (file)
@@ -439,10 +439,10 @@ class QueryGenerator {
                if ($POST['qG_del']) {
                        // Initialize array to work on, save special parameters
                        $ssArr = $this->getSubscript($POST['qG_del']);
-                       $workArr =$this->queryConfig;
+                       $workArr = &$this->queryConfig;
                        $ssArrSize = sizeof($ssArr) - 1;
                        for ($i = 0; $i < $ssArrSize; $i++) {
-                               $workArr =$workArr[$ssArr[$i]];
+                               $workArr = &$workArr[$ssArr[$i]];
                        }
                        // Delete the entry and move the other entries
                        unset($workArr[$ssArr[$i]]);
@@ -456,10 +456,10 @@ class QueryGenerator {
                if ($POST['qG_ins']) {
                        // Initialize array to work on, save special parameters
                        $ssArr = $this->getSubscript($POST['qG_ins']);
-                       $workArr =$this->queryConfig;
+                       $workArr = &$this->queryConfig;
                        $ssArrSize = sizeof($ssArr) - 1;
                        for ($i = 0; $i < $ssArrSize; $i++) {
-                               $workArr =$workArr[$ssArr[$i]];
+                               $workArr = &$workArr[$ssArr[$i]];
                        }
                        // Move all entries above position where new entry is to be inserted
                        $workArrSize = sizeof($workArr);
@@ -474,10 +474,10 @@ class QueryGenerator {
                if ($POST['qG_up']) {
                        // Initialize array to work on
                        $ssArr = $this->getSubscript($POST['qG_up']);
-                       $workArr =$this->queryConfig;
+                       $workArr = &$this->queryConfig;
                        $ssArrSize = sizeof($ssArr) - 1;
                        for ($i = 0; $i < $ssArrSize; $i++) {
-                               $workArr =$workArr[$ssArr[$i]];
+                               $workArr = &$workArr[$ssArr[$i]];
                        }
                        // Swap entries
                        $qG_tmp = $workArr[$ssArr[$i]];
@@ -488,10 +488,10 @@ class QueryGenerator {
                if ($POST['qG_nl']) {
                        // Initialize array to work on
                        $ssArr = $this->getSubscript($POST['qG_nl']);
-                       $workArr =$this->queryConfig;
+                       $workArr = &$this->queryConfig;
                        $ssArraySize = sizeof($ssArr) - 1;
                        for ($i = 0; $i < $ssArraySize; $i++) {
-                               $workArr =$workArr[$ssArr[$i]];
+                               $workArr = &$workArr[$ssArr[$i]];
                        }
                        // Do stuff:
                        $tempEl = $workArr[$ssArr[$i]];
@@ -509,10 +509,10 @@ class QueryGenerator {
                if ($POST['qG_remnl']) {
                        // Initialize array to work on
                        $ssArr = $this->getSubscript($POST['qG_remnl']);
-                       $workArr =$this->queryConfig;
+                       $workArr = &$this->queryConfig;
                        $ssArrSize = sizeof($ssArr) - 1;
                        for ($i = 0; $i < $ssArrSize; $i++) {
-                               $workArr =$workArr[$ssArr[$i]];
+                               $workArr = &$workArr[$ssArr[$i]];
                        }
                        // Do stuff:
                        $tempEl = $workArr[$ssArr[$i]];
index 6f55913..9f7d413 100644 (file)
@@ -139,7 +139,7 @@ class SqlParser {
                $result = array();
                if ($parameterReferences === NULL) {
                        $result['parameters'] = array();
-                       $parameterReferences =$result['parameters'];
+                       $parameterReferences = &$result['parameters'];
                }
                $result['type'] = 'SELECT';
                // Looking for STRAIGHT_JOIN keyword:
@@ -1170,7 +1170,7 @@ class SqlParser {
                                                                        $stack[$level][$pnt[$level]]['values'][1] = $this->getValue($parseString);
                                                                } else {
                                                                        // Finding value for comparator:
-                                                                       $stack[$level][$pnt[$level]]['value'] =$this->getValueOrParameter($parseString, $stack[$level][$pnt[$level]]['comparator'], '', $parameterReferences);
+                                                                       $stack[$level][$pnt[$level]]['value'] = &$this->getValueOrParameter($parseString, $stack[$level][$pnt[$level]]['comparator'], '', $parameterReferences);
                                                                        if ($this->parse_error) {
                                                                                return $this->parse_error;
                                                                        }
@@ -1317,15 +1317,15 @@ class SqlParser {
                                $parameterReferences['?'] = array();
                        }
                        $value = array('?');
-                       $parameterReferences['?'][] =$value;
+                       $parameterReferences['?'][] = &$value;
                } elseif ($parameter !== '') {
                        // named parameter
                        if (isset($parameterReferences[$parameter])) {
                                // Use the same reference as last time we encountered this parameter
-                               $value =$parameterReferences[$parameter];
+                               $value = &$parameterReferences[$parameter];
                        } else {
                                $value = array($parameter);
-                               $parameterReferences[$parameter] =$value;
+                               $parameterReferences[$parameter] = &$value;
                        }
                } else {
                        $value = $this->getValue($parseString, $comparator, $mode);
index 61cb729..6cfd97b 100644 (file)
@@ -315,7 +315,7 @@ class ExtensionManager {
                $processedPalettes = array();
                \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($table);
                if (isset($GLOBALS['TCA'][$table]['columns'][$field])) {
-                       $types =$GLOBALS['TCA'][$table]['types'];
+                       $types = &$GLOBALS['TCA'][$table]['types'];
                        if (is_array($types)) {
                                // Iterate through all types and search for the field that defines the palette to be extended:
                                foreach (array_keys($types) as $type) {
@@ -357,7 +357,7 @@ class ExtensionManager {
        static public function addFieldsToPalette($table, $palette, $addFields, $insertionPosition = '') {
                \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($table);
                if (isset($GLOBALS['TCA'][$table])) {
-                       $paletteData =$GLOBALS['TCA'][$table]['palettes'][$palette];
+                       $paletteData = &$GLOBALS['TCA'][$table]['palettes'][$palette];
                        // If palette already exists, merge the data:
                        if (is_array($paletteData)) {
                                $paletteData['showitem'] = self::executePositionedStringInsertion($paletteData['showitem'], $addFields, $insertionPosition);
index ddbbe62..ddf6aef 100644 (file)
@@ -1706,9 +1706,9 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
                if ($namespace) {
                        if (strpos($namespace, '.')) {
                                $parts = explode('.', $namespace);
-                               $a =$this->inlineSettings;
+                               $a = &$this->inlineSettings;
                                foreach ($parts as $part) {
-                                       $a =$a[$part];
+                                       $a = &$a[$part];
                                }
                                $a[$key] = $value;
                        } else {
@@ -1733,9 +1733,9 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
                if ($namespace) {
                        if (strpos($namespace, '.')) {
                                $parts = explode('.', $namespace);
-                               $a =$this->inlineSettings;
+                               $a = &$this->inlineSettings;
                                foreach ($parts as $part) {
-                                       $a =$a[$part];
+                                       $a = &$a[$part];
                                }
                                $a = array_merge((array) $a, $array);
                        } else {
index a2eada1..1c7125e 100644 (file)
@@ -102,10 +102,10 @@ class DriverRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                foreach ($this->driverConfigurations as $driver) {
                        $label = $driver['label'] ?: $driver['class'];
                        \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('sys_file_storage');
-                       $driverFieldConfig =$GLOBALS['TCA']['sys_file_storage']['columns']['driver']['config'];
+                       $driverFieldConfig = &$GLOBALS['TCA']['sys_file_storage']['columns']['driver']['config'];
                        $driverFieldConfig['items'][] = array($label, $driver['shortName']);
                        if ($driver['flexFormDS']) {
-                               $configurationFieldConfig =$GLOBALS['TCA']['sys_file_storage']['columns']['configuration']['config'];
+                               $configurationFieldConfig = &$GLOBALS['TCA']['sys_file_storage']['columns']['configuration']['config'];
                                $configurationFieldConfig['ds'][$driver['shortName']] = $driver['flexFormDS'];
                        }
                }
index 9940584..0562971 100644 (file)
@@ -196,7 +196,7 @@ class ArrayUtility {
                // Extract parts of the path
                $path = str_getcsv($path, $delimiter);
                // Point to the root of the array
-               $pointer =$array;
+               $pointer = &$array;
                // Find path in given array
                foreach ($path as $segment) {
                        // Fail if the part is empty
@@ -208,7 +208,7 @@ class ArrayUtility {
                                $pointer[$segment] = array();
                        }
                        // Set pointer to new cell
-                       $pointer =$pointer[$segment];
+                       $pointer = &$pointer[$segment];
                }
                // Set value of target cell
                $pointer = $value;
index 7d6b71e..bbfc8d1 100644 (file)
@@ -41,7 +41,7 @@ class ClientUtility {
         */
        static public function getBrowserInfo($userAgent) {
                // Hook: $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getBrowserInfo']:
-               $getBrowserInfoHooks =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getBrowserInfo'];
+               $getBrowserInfoHooks = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getBrowserInfo'];
                if (is_array($getBrowserInfoHooks)) {
                        foreach ($getBrowserInfoHooks as $hookFunction) {
                                $returnResult = TRUE;
@@ -184,7 +184,7 @@ class ClientUtility {
         */
        static public function getDeviceType($userAgent) {
                // Hook: $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getDeviceType']:
-               $getDeviceTypeHooks =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getDeviceType'];
+               $getDeviceTypeHooks = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/div/class.t3lib_utility_client.php']['getDeviceType'];
                if (is_array($getDeviceTypeHooks)) {
                        foreach ($getDeviceTypeHooks as $hookFunction) {
                                $returnResult = TRUE;
index 2127100..0be2de3 100644 (file)
@@ -176,9 +176,9 @@ class GeneralUtility {
                        if (strpos($key, '|') !== FALSE) {
                                $pieces = explode('|', $key);
                                $newGet = array();
-                               $pointer =$newGet;
+                               $pointer = &$newGet;
                                foreach ($pieces as $piece) {
-                                       $pointer =$pointer[$piece];
+                                       $pointer = &$pointer[$piece];
                                }
                                $pointer = $inputGet;
                                $mergedGet = self::array_merge_recursive_overrule($_GET, $newGet);
@@ -3711,7 +3711,7 @@ Connection: close
                $pA = $cacheHash->getRelevantParameters($addQueryParams);
                // Hook: Allows to manipulate the parameters which are taken to build the chash:
                if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['cHashParamsHook'])) {
-                       $cHashParamsHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['cHashParamsHook'];
+                       $cHashParamsHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['cHashParamsHook'];
                        if (is_array($cHashParamsHook)) {
                                $hookParameters = array(
                                        'addQueryParams' => &$addQueryParams,
@@ -3870,7 +3870,7 @@ Connection: close
                // Needed for inclusion of the dynamic config files.
                global $TCA;
                if (isset($TCA[$table])) {
-                       $tca =$TCA[$table];
+                       $tca = &$TCA[$table];
                        if (is_array($tca['ctrl']) && !$tca['columns']) {
                                $dcf = $tca['ctrl']['dynamicConfigFile'];
                                if ($dcf) {
index 4e7d847..9375219 100644 (file)
@@ -82,7 +82,7 @@ class XmlParserFactory {
                                if (!\TYPO3\CMS\Core\Utility\GeneralUtility::inList($excludeClassNames, $className)) {
                                        $objParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($className);
                                        if ($objParser->isAvailable()) {
-                                               self::$instance[$parserType] =$objParser;
+                                               self::$instance[$parserType] = &$objParser;
                                                break;
                                        }
                                        $objParser = NULL;
index 343dc27..4a3f4dc 100644 (file)
@@ -6024,7 +6024,7 @@ class ContentObjectRenderer {
                                        $isUrlModified = TRUE;
                                }
                                // Override scheme:
-                               $forceAbsoluteUrl =$configuration['forceAbsoluteUrl.']['scheme'];
+                               $forceAbsoluteUrl = &$configuration['forceAbsoluteUrl.']['scheme'];
                                if (!empty($forceAbsoluteUrl) && $urlParts['scheme'] !== $forceAbsoluteUrl) {
                                        $urlParts['scheme'] = $forceAbsoluteUrl;
                                        $isUrlModified = TRUE;
@@ -6795,7 +6795,7 @@ class ContentObjectRenderer {
                if (class_exists($className)) {
                        return TRUE;
                } elseif ($config) {
-                       $pluginConfiguration =$GLOBALS['TSFE']->tmpl->setup['plugin.'][$className . '.'];
+                       $pluginConfiguration = &$GLOBALS['TSFE']->tmpl->setup['plugin.'][$className . '.'];
                        if (isset($pluginConfiguration['includeLibs']) && $pluginConfiguration['includeLibs']) {
                                $config['includeLibs'] = $pluginConfiguration['includeLibs'];
                                return $this->includeLibs($config);
@@ -7751,4 +7751,4 @@ class ContentObjectRenderer {
 }
 
 
-?>
\ No newline at end of file
+?>
index c4d9b13..0f00ad5 100644 (file)
@@ -212,7 +212,7 @@ class ImageMenuContentObject extends \TYPO3\CMS\Frontend\ContentObject\Menu\Abst
         */
        public function writeMenu() {
                if ($this->result) {
-                       $res =$this->result;
+                       $res = &$this->result;
                        // shortMD5 260900
                        $menuName = 'menu_' . \TYPO3\CMS\Core\Utility\GeneralUtility::shortMD5($res['imgMap']);
                        $result = '<img src="' . $GLOBALS['TSFE']->absRefPrefix . $res['output_file'] . '" width="' . $res['output_w'] . '" height="' . $res['output_h'] . '" usemap="#' . $menuName . '" border="0" ' . $this->mconf['params'];
index 31b8fbf..0271195 100644 (file)
@@ -3742,7 +3742,7 @@ if (version == "n3") {
                }
                // Hook for supplying custom search/replace data
                if (isset($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-contentStrReplace'])) {
-                       $contentStrReplaceHooks =$this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-contentStrReplace'];
+                       $contentStrReplaceHooks = &$this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-contentStrReplace'];
                        if (is_array($contentStrReplaceHooks)) {
                                $_params = array(
                                        'search' => &$search,
index 9ba7e13..7bca9c9 100644 (file)
@@ -515,7 +515,7 @@ class SearchFormController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
        public function getResultRows($searchWordArray, $freeIndexUid = -1) {
                // Getting SQL result pointer. This fetches ALL results (1,000,000 if found)
                $GLOBALS['TT']->push('Searching result');
-               if ($hookObj =$this->hookRequest('getResultRows_SQLpointer')) {
+               if ($hookObj = &$this->hookRequest('getResultRows_SQLpointer')) {
                        $res = $hookObj->getResultRows_SQLpointer($searchWordArray, $freeIndexUid);
                } else {
                        $res = $this->getResultRows_SQLpointer($searchWordArray, $freeIndexUid);
index e4a9ef0..a63f13d 100644 (file)
@@ -143,7 +143,7 @@ class IndexSearchRepository {
        public function doSearch($searchWords, $freeIndexUid = -1) {
                // Getting SQL result pointer:
                $GLOBALS['TT']->push('Searching result');
-               if ($hookObj =$this->hookRequest('getResultRows_SQLpointer')) {
+               if ($hookObj = &$this->hookRequest('getResultRows_SQLpointer')) {
                        $res = $hookObj->getResultRows_SQLpointer($searchWords, $freeIndexUid);
                } else {
                        $res = $this->getResultRows_SQLpointer($searchWords, $freeIndexUid);
index 664fd0c..e268ef6 100644 (file)
@@ -159,7 +159,7 @@ class MysqlFulltextIndexHook {
                // Indexing configuration clause:
                $freeIndexUidClause = $this->pObj->freeIndexUidWhere($freeIndexUid);
                // Calling hook for alternative creation of page ID list
-               if ($hookObj =$this->pObj->hookRequest('execFinalQuery_idList')) {
+               if ($hookObj = &$this->pObj->hookRequest('execFinalQuery_idList')) {
                        $pageWhere = $hookObj->execFinalQuery_idList('');
                } elseif ($this->pObj->join_pages) {
                        // Alternative to getting all page ids by ->getTreeList() where "excludeSubpages" is NOT respected.
index 98a857f..b46de6f 100644 (file)
@@ -81,7 +81,7 @@ Cleaning XML for FlexForm fields.
                );
                $startingPoint = $this->cli_isArg('--pid') ? \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->cli_argValue('--pid'), 0) : 0;
                $depth = $this->cli_isArg('--depth') ? \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->cli_argValue('--depth'), 0) : 1000;
-               $this->cleanFlexForm_dirtyFields =$resultArray['dirty'];
+               $this->cleanFlexForm_dirtyFields = &$resultArray['dirty'];
                // Do not repair flexform data in deleted records.
                $this->genTree_traverseDeleted = FALSE;
                $this->genTree($startingPoint, $depth, (int) $this->cli_argValue('--echotree'), 'main_parseTreeCallBack');
index a2b016b..43d6fdb 100644 (file)
@@ -634,7 +634,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                        );
                                        foreach ($searchableFields as $fieldName) {
                                                if (isset($GLOBALS['TCA'][$table]['columns'][$fieldName])) {
-                                                       $fieldConfig =$GLOBALS['TCA'][$table]['columns'][$fieldName]['config'];
+                                                       $fieldConfig = &$GLOBALS['TCA'][$table]['columns'][$fieldName]['config'];
                                                        if ($fieldConfig['type'] == 'input' && $fieldConfig['eval'] && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($fieldConfig['eval'], 'int')) {
                                                                $condition = $fieldName . '=' . $this->searchString;
                                                                if (is_array($fieldConfig['search']) && in_array('pidonly', $fieldConfig['search']) && $currentPid > 0) {
@@ -649,7 +649,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                        $like = '\'%' . $GLOBALS['TYPO3_DB']->quoteStr($GLOBALS['TYPO3_DB']->escapeStrForLike($this->searchString, $table), $table) . '%\'';
                                        foreach ($searchableFields as $fieldName) {
                                                if (isset($GLOBALS['TCA'][$table]['columns'][$fieldName])) {
-                                                       $fieldConfig =$GLOBALS['TCA'][$table]['columns'][$fieldName]['config'];
+                                                       $fieldConfig = &$GLOBALS['TCA'][$table]['columns'][$fieldName]['config'];
                                                        $format = 'LCASE(%s) LIKE LCASE(%s)';
                                                        if (is_array($fieldConfig['search'])) {
                                                                if (in_array('case', $fieldConfig['search'])) {
index 3147ca3..d98beb5 100644 (file)
@@ -279,7 +279,7 @@ class RecyclerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
         * @return      string          The accordant data in the session of the current backend user
         */
        protected function getDataFromSession($identifier, $default = NULL) {
-               $sessionData =$GLOBALS['BE_USER']->uc['tx_recycler'];
+               $sessionData = &$GLOBALS['BE_USER']->uc['tx_recycler'];
                if (isset($sessionData[$identifier]) && $sessionData[$identifier]) {
                        $data = $sessionData[$identifier];
                } else {
index 1af0256..c46e385 100644 (file)
@@ -41,7 +41,7 @@ class UserSetupHook {
         */
        public function decryptPassword(array $parameters) {
                if ($this->isRsaAvailable()) {
-                       $be_user_data =$parameters['be_user_data'];
+                       $be_user_data = &$parameters['be_user_data'];
                        if (substr($be_user_data['password'], 0, 4) === 'rsa:' && substr($be_user_data['password2'], 0, 4) === 'rsa:') {
                                $backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
                                /** @var $storage \TYPO3\CMS\Rsaauth\Storage\AbstractStorage */
index 7d24836..926ef11 100644 (file)
@@ -90,10 +90,10 @@ abstract class RteHtmlAreaApi {
        public function main($parentObject) {
                global $TYPO3_CONF_VARS, $LANG, $TSFE;
                $this->htmlAreaRTE = $parentObject;
-               $this->rteExtensionKey =$this->htmlAreaRTE->ID;
-               $this->thisConfig =$this->htmlAreaRTE->thisConfig;
-               $this->toolbar =$this->htmlAreaRTE->toolbar;
-               $this->LOCAL_LANG =$this->htmlAreaRTE->LOCAL_LANG;
+               $this->rteExtensionKey = &$this->htmlAreaRTE->ID;
+               $this->thisConfig = &$this->htmlAreaRTE->thisConfig;
+               $this->toolbar = &$this->htmlAreaRTE->toolbar;
+               $this->LOCAL_LANG = &$this->htmlAreaRTE->LOCAL_LANG;
                // Set the value of this boolean based on the initial value of $this->pluginButtons
                $this->pluginAddsButtons = !empty($this->pluginButtons);
                // Check if the plugin should be disabled in frontend
index d6d910b..731f6bc 100644 (file)
@@ -404,7 +404,7 @@ class T3Editor implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function getPlugins($params, \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj) {
                $result = array();
-               $plugins =$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3editor']['plugins'];
+               $plugins = &$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3editor']['plugins'];
                if (is_array($plugins)) {
                        $result = array_values($plugins);
                }
index fc8e203..15918a7 100644 (file)
@@ -273,7 +273,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B
                        }
                        // Hook post updating template/TCE processing
                        if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postTCEProcessingHook'])) {
-                               $postTCEProcessingHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postTCEProcessingHook'];
+                               $postTCEProcessingHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postTCEProcessingHook'];
                                if (is_array($postTCEProcessingHook)) {
                                        $hookParameters = array(
                                                'POST' => $POST,
@@ -375,7 +375,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B
                        $theOutput .= $this->pObj->doc->section('', $outCode);
                        // hook after compiling the output
                        if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postOutputProcessingHook'])) {
-                               $postOutputProcessingHook =$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postOutputProcessingHook'];
+                               $postOutputProcessingHook = &$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postOutputProcessingHook'];
                                if (is_array($postOutputProcessingHook)) {
                                        $hookParameters = array(
                                                'theOutput' => &$theOutput,