[php-src] Issue #9309: Imap: Segfault when IMAP\Connection is used after imap_close() was called.
| From: | konzelmann | Date: | Fri, 12 Aug 2022 08:32:54 +0000 |
| Subject: | [php-src] Issue #9309: Imap: Segfault when IMAP\Connection is used after imap_close() was called. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-242191@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/9309
Author: konzelmann
### Description
<?php
$mailHdl = imap_open('SERVER', 'USER', 'PASS');
imap_close($mailHdl,CL_EXPUNGE);
$mailCount = imap_num_msg($mailHdl);
?>
Resulted in a segfault
### PHP Version
PHP 8.1.9 (cli) (built: Aug 5 2022 11:22:59) (NTS)
### Operating System
ARCH Linux