Sorry it was confusing! In main/php_config.h: HAVE_SENDMAIL could be defined or undefined. In ext/standard/php_mail.h there is the following statement:
#if HAVE_SENDMAIL PHP_FUNCTION(mail) PHP_FUNCTION(ezmlm_hash); PHP_INFO_FUNCTION(mail); So since I do not have HAVE_SENDMAIL set, PHP_INFO_FUNCTION(mail) is undefined for me. In ext/standard/basic_functions.c there are three tests for HAVE_SENDMAIL, but there is a fourth one that is missing in PHP_MINFO_FUNCTION(basic). On my code I changed: PHP_MINFO(dl) (ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); PHP_MINFO(mail) (ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); to: PHP_MINFO(dl) (ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); #if HAVE_SENDMAIL PHP_MINFO(mail) (ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); #endif I'm not sure about the other functions that are there, I only had the problem because I don't have sendmail on my system. Hope it's clearer!! Fab. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "fabwash" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 2:25 AM Subject: Re: [PHP-DEV] basic_functions.c problem > Hello, > > There is no such HAVE_MAIL at all in the source, and PHP_MINFO() is always > defined, even if HAVE_SENDMAIL is undefined: > > ext/standard/mail.c:212: > #else > > PHP_FUNCTION(mail) {} > PHP_MINFO_FUNCTION(mail) {} > > #endif > > regards, > Derick > > > On Tue, 9 Apr 2002, fabwash wrote: > > > sorry I meant HAVE_MAIL > > > > Fab. > > ----- Original Message ----- > > From: fabwash > > To: [EMAIL PROTECTED] > > 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. > > > > ----------------------------------------------------------------------- > Did I help you? Consider a gift: > http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B > ----------------------------------------------------------------------- > PHP: Scripting the Web - [EMAIL PROTECTED] > All your branches are belong to me! > SRM: Script Running Machine - www.vl-srm.net > ----------------------------------------------------------------------- > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php