Issue Bug Closed

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

Karl Bauer 04/24/06, 09:47 updated 08/12/06, 14:16

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.