Re: basic_functions.c problem

From: Date: Wed, 10 Apr 2002 05:30:01 +0000
Subject: Re: basic_functions.c problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-82436@lists.php.net to get a copy of this message
Looks like an easy thing, i'll check it out. Derick On Tue, 9 Apr 2002, fabwash wrote: > sorry I meant HAVE_MAIL > > Fab. > ----- Original Message ----- > From: fabwash > To: php-dev@lists.php.net > 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 - derick@php.net All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net -----------------------------------------------------------------------

« previous php.dev (#82436) next »