----- Original Message -----
Sent: Tuesday, April 09, 2002 10:09
PM
Subject: [PHP-DEV] basic_functions.c
problem
Hi,
if a system doesn't have sendmail, HAVE_SENDMAIL
is not defined in php_config.h. When you try to compile basic_functions.c you
generate an unresolved reference.
in PHP_MINFO_FUNCTIONS it
referencesPHP_MINFO(mail) which will be undefined from php_mail.h if
HAVE_SENDMAIL is undefined.
I'm sorry i'm new to CVS and I'm learning so I
can't really give you a line number from basic_functions.c but there is only
one entry like this:
PHP_MINFO_FUNCTION(basic)
{
php_info_print_table_start();
PHP_MINFO(regex)
(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
PHP_MINFO(dl)
(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
PHP_MINFO(mail)
(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
php_info_print_table_end();
PHP_MINFO(assert)
(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
}
so since I don't have SENDMAIL, then I get an unresolved
reference to zm_mail_info which is what the macro expanded to. Maybe something
like:
#if HAVE_MAIL
PHP_MINFO(mail) ...
#endif
but once again i'm new to the source so I
can't really be sure about any modification.
Thanks,
Fab.