[php-src] Issue #10895: PHP crash after:[ error ] [2]imap_open(): Couldn't open stream
| From: | kinghuaq | Date: | Tue, 21 Mar 2023 06:17:51 +0000 |
| Subject: | [php-src] Issue #10895: PHP crash after:[ error ] [2]imap_open(): Couldn't open stream | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243950@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10895
Author: kinghuaq
From manual page: https://php.net/function.imap-open
Guys, I encountered a problem, I open "{imap.exmail.qq.com:143}INBOX" every 5 minutes, at
least failed one time in 24 hours, it shows "[ error ] [2]imap_open(): Couldn't open
stream {imap.exmail.qq.com:143}INBOX", and PHP crashed, ended by "WARNING: [pool www]
child 236893 exited on signal 11 (SIGSEGV - core dumped) after 58173.740387 seconds from
started".
I want to catch the error by try {}catch(){}, but not work, it is seems imap.so will not recover
after opening error. My PHP version is 7.0.
I don't want PHP crash, I want PHP keep running after failed, is any way to do this? thank you
very much!
---