Actions
Bug #16081
closedWrong parameter count for php_uname() reported by using the htmlmail function with PHP 4.2.2
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)
Actions