From: Hartmut Holzgraefe Date: Fri, 21 Jul 2000 15:50:37 +0000 (+0000) Subject: column size for date in imap_headers increased (see bug id #5699) X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4936d8fcf22aba9281fd9c5bc20d8bd855c825b;p=php column size for date in imap_headers increased (see bug id #5699) --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0fd7b8669e..e1936a2938 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -136,6 +136,8 @@ function_entry imap_functions[] = { PHP_FE(imap_errors, NULL) PHP_FE(imap_last_error, NULL) #ifndef PHP_WIN32 + PHP_FALIAS(pdf_open_memory_image, warn_not_available, NULL) +#else PHP_FE(imap_mail, NULL) #endif PHP_FE(imap_search, NULL) @@ -1075,9 +1077,9 @@ PHP_FUNCTION(imap_headers) tmp[5] = cache->draft ? 'X' : ' '; sprintf(tmp + 6, "%4ld) ", cache->msgno); mail_date(tmp+11, cache); - tmp[18] = ' '; - tmp[19] = '\0'; - mail_fetchfrom(tmp+19, imap_le_struct->imap_stream, msgno, (long)20); + tmp[22] = ' '; + tmp[23] = '\0'; + mail_fetchfrom(tmp+23, imap_le_struct->imap_stream, msgno, (long)20); strcat(tmp, " "); if ((i = cache->user_flags)) { strcat(tmp, "{"); @@ -3213,7 +3215,11 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char * #endif return 1; } +#endif + + +#ifndef PHP_WIN32 /* {{{ proto int imap_mail(string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]]) Send an email message */ PHP_FUNCTION(imap_mail)