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