summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-04-20 17:48:22 +0000
committerZeev Suraski <zeev@php.net>2000-04-20 17:48:22 +0000
commit64c974e8b697223d59bf3add93931292225d40cb (patch)
treee50576c7de9eebeaddf5338257ba490b35f4ad10 /ext/imap/php_imap.c
parent5f8e4c047466c84692adbf8ad3d571d25e3e24c6 (diff)
downloadphp-git-64c974e8b697223d59bf3add93931292225d40cb.tar.gz
- Add the zlib project to the php_modules workspace, and fix it's C-runtime definitions
- Move IMAP to the high performance API
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r--ext/imap/php_imap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index d9e1e7c42e..ea12f1cc5b 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -27,6 +27,7 @@
#define IMAP41
+#define OP_RELOGIN
#include "php.h"
#include "php_ini.h"
@@ -190,8 +191,7 @@ void mail_userlogout_it(pils *imap_le_struct)
* support this behavior... yet)
*/
imap_le_struct->busy = 0;
- mail_close_full(imap_le_struct->imap_stream,
- imap_le_struct->flags | CL_HALF);
+ mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags | CL_HALF);
}
void mail_nuke_chain(pils **headp)
@@ -631,7 +631,7 @@ void imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
* out the server's hostname.
*/
if (persistent
- && !mail_valid_net_parse(mailbox->value.str.val, &netmbx)) {
+ && !mail_valid_net_parse(ZSTRVAL_PP(mailbox), &netmbx)) {
persistent = 0;
}
@@ -672,7 +672,7 @@ void imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
if (node) {
imap_stream = mail_open(
node->imap_stream,
- mailbox->value.str.val,
+ ZSTRVAL_PP(mailbox),
flags | OP_RELOGIN);
if (imap_stream) {
/* Ping the stream to see if it is
@@ -690,7 +690,7 @@ void imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
/* Open a new connection. */
imap_stream = mail_open(
NIL,
- mailbox->value.str.val,
+ ZSTRVAL_PP(mailbox),
flags | OP_RELOGIN);
}