Ondřej Surý has released the latest PHP packages for Debian GNU/Linux users, including updates for PHP 8.5.0, PHP 8.4.15, and PHP 8.3.28 for various Debian versions. The new PHP 8.5 major release introduces several notable features, such as a "URI" extension that allows direct manipulation of URIs in code. Other enhancements include the pipe operator (|>), which streamlines complex operations by letting you chain commands naturally, and improvements to object and array cloning, function return values, and closure usage.
PHP 8.5.0, PHP 8.4.15, and 8.3.28 Debian packages released
Ondřej Surý has released the latest PHP packages for Debian GNU/Linux users. The updates include PHP 8.5.0, PHP 8.4.15, and PHP 8.3.28 for Debian 11 (Bullseye) LTS, Debian 12 (Bookworm), and Debian 13 (Trixie).
The new PHP 8.5 major release brings several notable additions. The new "URI" extension adds powerful tools for working with and transforming URIs directly within your code. And developers will immediately appreciate the pipe operator (|>), which streamlines complex operations by letting you chain commands more naturally.
Also noteworthy is the Clone With feature, making it simpler to copy existing objects or arrays without having to write out repetitive new code statements. Then there's the #[\NoDiscard] attribute, a useful way to signal that function return values shouldn't be ignored. Think of it as telling PHP "Don't throw this away!" Another significant enhancement allows closures and callable types (like first-class callables) to be used directly in constant expressions, further boosting how flexibly you can write code.
To add the repository to your Debian installation:
# To add this repository please do:
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl
${SUDO} wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
${SUDO} sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update
For further details, please refer to the deb.sury.org website. A dedicated bug tracker for the packages can be accessed here.
