Project

General

Profile

Actions

Bug #19699

closed

Non-static method RemoveXSS::RemoveXSS() cannot be called statically

Added by Markus Blaschke almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-12-15
Due date:
% Done:

0%

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

Description

MailformPlus will produce the fatal error (but it's not MailformPlus, it's in the TYPO3 Core):

PHP Fatal error: Non-static method RemoveXSS::RemoveXSS() cannot be called statically, assuming $this from incompatible context in TYPO3_SRC/t3lib/class.t3lib_div.php on line 383

t3lib_div:
public function removeXSS($string) {
require_once(PATH_typo3.'contrib/RemoveXSS/RemoveXSS.php');
$string = RemoveXSS::RemoveXSS($string);
return $string;
}

removeXSS.php:
class RemoveXSS {
function RemoveXSS($val) {
[...]
}
}
(issue imported from #M9945)


Files

php5_static_error_fix.patch (790 Bytes) php5_static_error_fix.patch Administrator Admin, 2008-12-15 22:52

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #20225: RemoveXSS is incompatible with PHP 5.2.9ClosedSteffen Kamper2009-03-21

Actions
Actions

Also available in: Atom PDF