Project

General

Profile

Actions

Bug #20937

closed

htmlArea RTE: Deprecated call-time pass-by-reference

Added by Stefano Kowalke over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-08-12
Due date:
% Done:

0%

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

Description

A reference "& $this" is pass to a function on line 229 in file typo3/sysext/rtehtmlarea/pi1/class.tx_rtehtmlarea_pi1.php.

This is deprecated in PHP 5.3 and will be removed in the future.

Call this on commandline:
php -l typo3/sysext/rtehtmlarea/pi1/class.tx_rtehtmlarea_pi1.php

The only way to solve this problem in PHP 5.3 is to declare the param as a reference at the creation of the method

function bar(&$v) {
$v++;
}

Unfortunable this is not an option in this case, because the method is provided by PHP (xml_parser) itself.
(issue imported from #M15439)


Files

rtehtmlarea_bugfix_15439_trunk.patch (857 Bytes) rtehtmlarea_bugfix_15439_trunk.patch Administrator Admin, 2010-08-24 07:47
Actions #1

Updated by Stanislas Rolland about 14 years ago

In the case of objects, PHP 5 passes object references anyways. So the & operator is not required anymore.

Actions #2

Updated by Stanislas Rolland about 14 years ago

Fixed in SVN TYPO3core trunk (revision 8687) and branch TYPO3_4-4 (revision 8688).

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF