FS#3572 - php-cgi 5.1.1-2 compiled without mail support
Attached to Project:
Arch Linux
Opened by Tom Dobes (tdobes) - Sunday, 04 December 2005, 09:32 GMT
Last edited by Dale Blount (dale) - Monday, 12 December 2005, 13:06 GMT
Opened by Tom Dobes (tdobes) - Sunday, 04 December 2005, 09:32 GMT
Last edited by Dale Blount (dale) - Monday, 12 December 2005, 13:06 GMT
|
Details
It would appear that php-cgi 5.1.1-2 was compiled without a
sendmail binary. PHP reports: "Call to undefined function
mail()" when scripts attempt to use the mail() function.
See
http://www.jgwong.org/writeups/mailerror.php
echo "<?php phpinfo(); ?>" | php | grep sendmail_path reports the correct path for sendmail on my system... but echo "<?php phpinfo(); ?>" | php-cgi | grep sendmail_path does not indicate a path to sendmail at all Thus, it appears that only php-cgi has the problem. (php 5.1.1-2 is fine) |
This task depends upon
Closed by Tobias Kieslich (tobias)
Monday, 12 December 2005, 18:42 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in pkgrel 3
Monday, 12 December 2005, 18:42 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in pkgrel 3
What was the reasoning for providing the php-cgi package? Isn't this functionality included in the php package already? The 3mb size savings doesn't seem like enough to maintain a separate package.
[tobias@sojus ~]$ php-c
php-cgi php-config
[tobias@sojus ~]$ php-cgi -v
PHP 5.1.1 (cgi-fcgi) (built: Dec 12 2005 13:35:54)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
[tobias@sojus ~]$ php -v
PHP 5.1.1 (cli) (built: Dec 5 2005 11:15:23)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
Thes functions are hardcoded. Now the point is, you'll prolly never get php(cli) working sufficiently with mod_fastcgi(not in repos) or lighttpd.
We might be able to include that suff into the php package (make clean, reconfigure, make again) but that seems more messy than maintaining a second package to me.