mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Ignore memory leaks reported for some libc-client functions
This commit is contained in:
commit
ade146c9ed
1 changed files with 6 additions and 0 deletions
|
@ -798,7 +798,9 @@ PHP_FUNCTION(imap_open)
|
|||
}
|
||||
#endif
|
||||
|
||||
ZEND_IGNORE_LEAKS_BEGIN();
|
||||
imap_stream = mail_open(NIL, ZSTR_VAL(mailbox), flags);
|
||||
ZEND_IGNORE_LEAKS_END();
|
||||
|
||||
if (imap_stream == NIL) {
|
||||
php_error_docref(NULL, E_WARNING, "Couldn't open stream %s", ZSTR_VAL(mailbox));
|
||||
|
@ -1757,7 +1759,9 @@ PHP_FUNCTION(imap_lsub)
|
|||
IMAPG(folderlist_style) = FLIST_ARRAY;
|
||||
|
||||
IMAPG(imap_sfolders) = NIL;
|
||||
ZEND_IGNORE_LEAKS_BEGIN();
|
||||
mail_lsub(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat));
|
||||
ZEND_IGNORE_LEAKS_END();
|
||||
if (IMAPG(imap_sfolders) == NIL) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
@ -1795,7 +1799,9 @@ PHP_FUNCTION(imap_getsubscribed)
|
|||
IMAPG(folderlist_style) = FLIST_OBJECT;
|
||||
|
||||
IMAPG(imap_sfolder_objects) = IMAPG(imap_sfolder_objects_tail) = NIL;
|
||||
ZEND_IGNORE_LEAKS_BEGIN();
|
||||
mail_lsub(imap_le_struct->imap_stream, ZSTR_VAL(ref), ZSTR_VAL(pat));
|
||||
ZEND_IGNORE_LEAKS_END();
|
||||
if (IMAPG(imap_sfolder_objects) == NIL) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue