#33434 [Opn->Fbk]: the mail() function does not call the needed function in mail.c

From: Date: Wed, 22 Jun 2005 15:26:45 +0000
Subject: #33434 [Opn->Fbk]: the mail() function does not call the needed function in mail.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80829@lists.php.net to get a copy of this message
ID: 33434 Updated by: tony2001@php.net Reported By: robert at bsd dot hu -Status: Open +Status: Feedback Bug Type: Mail related Operating System: IRIX 6.5 PHP Version: 4.3.11 New Comment: >As i told you i've added #define HAVE_SENDMAIL 1 to >mail.c just after the includes and before the #ifded > HAVE_SENDMAIL Right. And this should have caused warning saying that "HAVE_SENDMAIL" have been redefined (as it does for me). That's why I assume that it was never defined before because php_config.h didn't get included. That's pretty weird behaviour and I haven't heard about anyone who is able to reproduce it. Previous Comments: ------------------------------------------------------------------------ [2005-06-22 17:14:50] robert at bsd dot hu As i told you i've added #define HAVE_SENDMAIL 1 to mail.c just after the includes and before the #ifded HAVE_SENDMAIL. And as you can see strings shows that the functions are compiled in. I doubt that this is a header problem, because they get compiled in w/o my define too. ------------------------------------------------------------------------ [2005-06-22 17:10:07] tony2001@php.net That's interesting. From what I can see, mail.c includes php.h, which includes tsrm_virtual_cwd.h, which includes tsrm_config_common.h, which includes tsrm_config.h, which in turn includes php_config.h, where HAVE_SENDMAIL is defined. I.e. it looks like this: mail.c php.h tsrm_config.h tsrm_config_common.h tsrm_config.h php_config.h Could you plz figure out which one of these includes doesn't get included and why? ------------------------------------------------------------------------ [2005-06-22 16:06:51] robert at bsd dot hu same with the snapshot. ------------------------------------------------------------------------ [2005-06-22 15:49:52] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2005-06-22 15:46:55] robert at bsd dot hu I've defined HAVE_SENDMAIL 1 in mail.c just to be sure and it seems it is ok: $ strings .libs/libphp4.so|grep mail mail mb_send_mail mb_orig_mail mail vpopmail.directory called mail() function. sendmail_path Permission denied: unable to execute shell to run mail delivery binary '%s' Could not execute mail delivery program '%s' Path to sendmail sendmail_from sendmail_path /usr/lib/sendmail -t -i ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33434 -- Edit this bug report at http://bugs.php.net/?id=33434&edit=1

« previous php.bugs (#80829) next »