Project

General

Profile

Actions

Bug #45885

closed

LoginController Signal call-by-reference broken

Added by Tim Lochmüller about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2013-02-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hey guys,

in TYPO3\CMS\Backend\Controller\LoginController - emitRenderLoginFormSignal the call-by-reference is broken.
There is a missing "&" in the array parameter of the dispatch call:

protected function emitRenderLoginFormSignal(array &$markers) {
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Backend\\Controller\\LoginController', self::SIGNAL_RenderLoginForm, array($this, &$markers));
}

Without the call-by-reference there is no possibility to change the markers

Regards,
Tim

Actions #1

Updated by Gerrit Code Review about 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20114

Actions #2

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20114

Actions #3

Updated by Wouter Wolters almost 11 years ago

  • Status changed from Under Review to Resolved

Abandoned

"Call-time pass-by-reference" triggers a PHP warning. See http://www.php.net/manual/en/language.references.pass.php

Actions #4

Updated by Tim Lochmüller almost 11 years ago

Perhaps we should remove the hook then, because it is not possible to add or manipulate the markers?!

Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF