diff options
author | Jani Taskinen <jani@php.net> | 2009-05-05 01:22:44 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2009-05-05 01:22:44 +0000 |
commit | af442c0bde4d052e24ed7bf0dc406baf5d326399 (patch) | |
tree | 0a971f940ce0abde5c378c6827126bab59f218ca /ext/imap/php_imap.c | |
parent | a02d4a690a4641615db796f550aab662a6b2d8b8 (diff) | |
download | php-git-af442c0bde4d052e24ed7bf0dc406baf5d326399.tar.gz |
MFH: fix build
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 3f5ddf54c4..c3cdf9cf9a 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -351,6 +351,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_utf7_encode, 0, 0, 1) ZEND_ARG_INFO(0, buf) ZEND_END_ARG_INFO() +#ifdef HAVE_IMAP_MUTF7 ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_utf8_to_mutf7, 0, 0, 1) ZEND_ARG_INFO(0, in) ZEND_END_ARG_INFO() @@ -358,6 +359,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_mutf7_to_utf8, 0, 0, 1) ZEND_ARG_INFO(0, in) ZEND_END_ARG_INFO() +#endif ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_setflag_full, 0, 0, 3) ZEND_ARG_INFO(0, stream_id) @@ -517,8 +519,10 @@ const zend_function_entry imap_functions[] = { PHP_FE(imap_search, arginfo_imap_search) PHP_FE(imap_utf7_decode, arginfo_imap_utf7_decode) PHP_FE(imap_utf7_encode, arginfo_imap_utf7_encode) +#ifdef HAVE_IMAP_MUTF7 PHP_FE(imap_utf8_to_mutf7, arginfo_imap_utf8_to_mutf7) PHP_FE(imap_mutf7_to_utf8, arginfo_imap_mutf7_to_utf8) +#endif PHP_FE(imap_mime_header_decode, arginfo_imap_mime_header_decode) PHP_FE(imap_thread, arginfo_imap_thread) PHP_FE(imap_timeout, arginfo_imap_timeout) @@ -2342,7 +2346,7 @@ PHP_FUNCTION(imap_savebody) IMAPG(gets_stream) = writer; mail_parameters(NIL, SET_GETS, (void *) php_mail_gets); mail_fetchbody_full(imap_ptr->imap_stream, msgno, section, NULL, flags); - mail_parameters(NIL, SET_GETS, (void *) NIL); + mail_parameters(NIL, SET_GETS, (void *) NULL); IMAPG(gets_stream) = NULL; if (close_stream) { @@ -2895,6 +2899,7 @@ PHP_FUNCTION(imap_utf7_encode) #undef B64 #undef UNB64 +#ifdef HAVE_IMAP_MUTF7 static void php_imap_mutf7(INTERNAL_FUNCTION_PARAMETERS, int mode) { char *in; @@ -2935,6 +2940,7 @@ PHP_FUNCTION(imap_mutf7_to_utf8) { php_imap_mutf7(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); } +#endif /* {{{ proto bool imap_setflag_full(resource stream_id, string sequence, string flag [, int options]) Sets flags on messages */ |