Project

General

Profile

Actions

Bug #16081

closed

Wrong parameter count for php_uname() reported by using the htmlmail function with PHP 4.2.2

Added by Karl Bauer about 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-04-24
Due date:
% Done:

0%

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

Description

The HTML Funcktion reports the Follow error:
Warning: Wrong parameter count for php_uname() in t3lib/class.t3lib_htmlmail.php on line 272. This occours with PHP version 4.2.2.

The Problem is that this PHP Version not accept parameters to the php_uname() function and it fails. The code i replaced by the follow code that will work with this php version correctly. It will only work if PHP is running as Apache extension and not as CGI.

Line 272 in t3lib/class.t3lib_htmlmail.php:
/*** WRONG PARAMETER COUNT FIXED BY REPLACE THE php_uname FUNCTION /
//$host = php_uname('n');
$host = $_SERVER['SERVER_NAME'];
/
END OF CHANGES FOR php_uname FIX ***/

(issue imported from #M3326)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #16402: If typo3 wants to send a html-mail i got a error messageClosedMichael Stucki2006-07-24

Actions
Has duplicate TYPO3 Core - Bug #16113: Coding Error in t3lib_htmlmail.php function start()Closed2006-05-02

Actions
Actions

Also available in: Atom PDF