|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-07-13 07:54 UTC] slim at inbox dot lv
Description: ------------ php segfaults randomly on heavy imap_reopen usage with 7.x branches. From phpng-upgrading docs it looks like on failed mail_open() streamind should be closed, not deleted Patchesphp-inbox-php71-reopen-close.patch (last revision 2018-07-13 07:54 UTC by slim at inbox dot lv)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Simple reproducer without mailserver: <?php $imap = imap_open('~/good-mailbox', '', '', 0); var_dump($imap); $foo = $imap; var_dump(imap_num_msg($imap)); var_dump(imap_reopen($imap, '~/bad-mailbox')); var_dump(imap_num_msg($imap));