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 #1

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

Actions #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";'

Actions #3

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.

Actions #4

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.

Actions #5

Updated by Martin Kutschker almost 18 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF