File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1270,7 +1270,6 @@ PHP_FUNCTION(imap_reopen)
1270
1270
int mailbox_len ;
1271
1271
long options = 0 , retries = 0 ;
1272
1272
pils * imap_le_struct ;
1273
- MAILSTREAM * imap_stream ;
1274
1273
long flags = NIL ;
1275
1274
long cl_flags = NIL ;
1276
1275
@@ -1298,12 +1297,12 @@ PHP_FUNCTION(imap_reopen)
1298
1297
RETURN_FALSE ;
1299
1298
}
1300
1299
1301
- imap_stream = mail_open (imap_le_struct -> imap_stream , mailbox , flags );
1302
- if (imap_stream == NIL ) {
1300
+ imap_le_struct -> imap_stream = mail_open (imap_le_struct -> imap_stream , mailbox , flags );
1301
+ if (imap_le_struct -> imap_stream == NIL ) {
1302
+ zend_list_delete (Z_RESVAL_P (streamind ));
1303
1303
php_error_docref (NULL TSRMLS_CC , E_WARNING , "Couldn 't re-open stream");
1304
1304
RETURN_FALSE ;
1305
1305
}
1306
- imap_le_struct -> imap_stream = imap_stream ;
1307
1306
RETURN_TRUE ;
1308
1307
}
1309
1308
/* }}} */
You can’t perform that action at this time.
0 commit comments