PHP 4.0 Bug #9362 Updated: When sendmail not available, get compile errors
| From: | sas@php.net | Date: | Wed, 21 Feb 2001 07:41:20 +0000 |
| Subject: | PHP 4.0 Bug #9362 Updated: When sendmail not available, get compile errors | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47125@lists.php.net to get a copy of this message | ||
ID: 9362
Updated by: sas
Reported By: amra@us.ibm.com
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Assigned To:
Comments:
Thanks, I've changed the sendmail check not to assume that sendmail lives in /usr/lib.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-20 17:28:39] amra@us.ibm.com
When sendmail is not available on a system, get compiler errors:
"basic_functions.c", line 486.9: 1506-045 (S) Undeclared identifier php_if_mail.
"basic_functions.c", line 487.9: 1506-045 (S) Undeclared identifier php_if_ezmlm_hash.
I got around the error by doing the following in the above file:
#ifdef HAVE_SENDMAIL
/* functions from mail.c */
PHP_FE(mail, NULL)
PHP_FE(ezmlm_hash, NULL)
#else
PHP_FALIAS(mail , warn_not_available, NULL)
PHP_FALIAS(ezmlm_hash, warn_not_available, NULL)
#endif
I think that HAVE_SENDMAIL needs to be checked.....
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9362&edit=2