Debian 9902 Published by

Ondřej Surý has released PHP 7.2.0 packages for both Debian GNU/Linux 8 and 9



PHP 7.2.0 comes with numerous improvements and new features such as

Convert numeric keys in object/array casts
Counting of non-countable objects
Object typehint
HashContext as Object
Argon2 in password hash
Improve TLS constants to sane values
Mcrypt extension removed
New sodium extension

To add the deb.sury.org PHP repository to your Debian installation, run as root:
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update
To install PHP 7.2 with MySQL/MariaDB and php-fpm support:
apt-get install php7.2-cgi php7.2-gd php7.2-curl php7.2-imap php7.2-sqlite3 php7.2-mysql php7.2-tidy php7.2-pspell php7.2-recode php7.2-xml php7.2-intl php7.2-enchant php7.2-gmp php7.2-mbstring php7.2-soap php7.2-xmlrpc php7.2-zip php7.2-fpm

Please note that the mcrypt package is no longer available after the support has been removed from PHP 7.2