Newbie - Applying imap patch to php4.0.4pl1 ....

MDTRAN mdtran@acton.com
Tue, 24 Apr 2001 10:48:17 -0500


Hi,

I am trying compile the a binary for apache with php4.0.4pl1.
A patch is recommeded for this php version.  How do I go
about applying this patch to to the php source ?

Thanks


----------------------------------------------------------------------------
--- ext/imap/php_imap.c.orig	Tue Mar  6 09:22:17 2001
+++ ext/imap/php_imap.c	Tue Mar  6 09:24:10 2001
@@ -183,7 +183,19 @@ extern char imsp_password[80];
 void mail_close_it(zend_rsrc_list_entry *rsrc)
 {
 	pils *imap_le_struct = (pils *)rsrc->ptr;
+	IMAPLS_FETCH();
+
 	mail_close_full(imap_le_struct->imap_stream, imap_le_struct->flags);
+
+	if (IMAPG(imap_user)) {
+		efree(IMAPG(imap_user));
+		IMAPG(imap_user) = 0;
+	}
+	if (IMAPG(imap_password)) {
+		efree(IMAPG(imap_password));
+		IMAPG(imap_password) = 0;
+	}
+
 	efree(imap_le_struct);
 }

...
...
...
...
----------------------------------------------------------------------------
----------