Bug #16081
closedWrong parameter count for php_uname() reported by using the htmlmail function with PHP 4.2.2
0%
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)
Updated by Kasper Skårhøj about 18 years ago
Have the same problem, must be fixed since the PHP version requirement is less than php 4.2.2
Updated by Martin Kutschker about 18 years ago
Kasper, of course it will be fixed.
Markus, you're telling me tahat on your PHP 4.4.2 you get a PHP warning?
My 4.3.10 and 5.1.2 work fine, when I test it with this command:
php -r 'echo php_uname("n"),"\n";'
Updated by Martin Kutschker about 18 years ago
Did you try this on the shell?
php -r 'echo php_uname("n"),"\n";'
Or put it in a .php file and run it from the webserver.
I've now installed 4.4.2 and it works flawless. No warnings and a correct host name.
Updated by old_markusd112 about 18 years ago
Sorry, it was my fault: It was the wrong bug report entry, sorry... I have deleted my comments...
In version 4.4.2 the error message "Warning: Wrong parameter count for php_uname() in t3lib/class.t3lib_htmlmail.php on line 272." is not displayed.