Re: Proposal to unbundle imap/pspell/oci8 extensions for PHP 8.4
| From: | BohwaZ | Date: | Thu, 28 Sep 2023 09:48:34 +0000 |
| Subject: | Re: Proposal to unbundle imap/pspell/oci8 extensions for PHP 8.4 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121158@lists.php.net to get a copy of this message | ||
> The ext/imap extension isn't going to disappear, it is not going be
> unbundled as we can not guarantee the underlaying library is
> maintained. Not only is it no longer maintained, the original
> purveyors have removed any mention of it from their website.
>
> For most people, there will be little change here. On Debian for
> example, "php-<packagename>" is used for both bundled and PECL'ed
> extensions.
OK then :)
> Using Curl seems like a bad alternative, as it would likely have to
> open a connection for each action that you do.
No, curl is clever and keeping the connection open as long as you don't
use curl_close.
This is clearly visible when enabling verbose mode:
…
< A004 OK Fetch completed (0.001 + 0.000 secs).
* Connection #0 to host localhost left intact
* Found bundle for host localhost: 0x55d0b5c60f50 [serially]
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (127.0.0.1) port 143 (#0)
> A005 FETCH 1:* FULL
…
In my experience, using curl is much faster than using ext/imap :)