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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Kieslich (tobias)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Tom Dobes (tdobes) - Monday, 12 December 2005, 02:46 GMT
Recompiling from the PKGBUILD fixed the problem, so it is indeed a compile-time problem with the binary currently being distributed.
Comment by Dale Blount (dale) - Monday, 12 December 2005, 13:53 GMT
Tobias,

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.
Comment by Tobias Kieslich (tobias) - Monday, 12 December 2005, 18:40 GMT
you can either build cli functionality into the php binary or some cgi/fcgi features. So far I havent found a way than build ing it twice. The cgi binary has some other(additional) configure switches, hardening it a bit and make it more suitable(especially for fcgi).
[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.

Loading...