summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-07-21 15:50:37 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-07-21 15:50:37 +0000
commitd4936d8fcf22aba9281fd9c5bc20d8bd855c825b (patch)
treed8a582fee8af3b27b17b603aeda7eaed697e6456
parentfbced1b9cc50b839a0214352ee77391c533ac08f (diff)
downloadphp-git-d4936d8fcf22aba9281fd9c5bc20d8bd855c825b.tar.gz
column size for date in imap_headers increased (see bug id #5699)
-rw-r--r--ext/imap/php_imap.c12
1 files changed, 9 insertions, 3 deletions
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)