Re: Call to undefined function imap_open()

John-Paul Stewart <[email protected]>
Newsgroups comp.lang.php
Message-ID <[email protected]>
On 2022-09-03 09:05, Mark5320 wrote:
> 
> by the way, what are the differences between the various versions found
> 
> ~$ apt search imap | grep php
> 
> 
> 
> WARNING: apt does not have a stable CLI interface. Use with caution in
> scripts.
> 
> 
> 
> php-imap/jammy,jammy 2:8.1+92ubuntu1 all
> 
> php-net-imap/jammy,jammy 1:1.1.3-2.1 all
> 
> php8.1-imap/jammy-updates 8.1.2-1ubuntu2.3 amd64

In the Debian/Ubuntu packaging, php-imap is a generic package that
automatically pulls in whatever the current version is.  In your case,
that's php8.1-imap.  The result is that if you install php-imap today,
when 8.2 or 9.0 comes along the distribution will automatically upgrade
you to that version.  (The php8.1-imap package will still be installed
as a dependency of php-imap, but it will flagged as such in the package
database, thus subject to be upgraded.)

Conversely, if you manually install php8.1-imap today (so that is marked
as "manual" in the package database), then when the next version comes
along the distro will NOT automatically upgrade it.  If you want the
next version, you'll have to install that manually when you're ready.

So, install the generic one if you want automatic version updates or
install the versioned one if you have a specific need to stay on that
version.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.