从PHP 7.0.x 移植到 PHP 7.1.x

Table of Contents

这个新的小版本带来了大量的 新特性少量的兼容性调整 在生产环境切换 PHP 版本前应该进行相关测试。

参见 PHP 版本迁移指南 5.0.x, 5.1.x, 5.2.x, 5.3.x, 5.4.x, 5.5.x, 5.6.x and 7.0.x.

User Contributed Notes

sales at k-ict dot org 02-Sep-2017 02:19
A safe option for migration is by installing PHP 7.1 in a Docker and test the scripts.
shl at g8net dot com 04-Jan-2017 08:06
For fresh installation on Ubuntu 16.04
If we want to install new version && Remove all php dependencies
sudo apt-get remove php*

sudo apt-get install php7.1 php7.1-cli php7.1-common libapache2-mod-php7.1 php7.1-mysql php7.1-fpm php7.1-curl php7.1-gd php7.1-bz2 php7.1-mcrypt php7.1-json php7.1-tidy php7.1-mbstring php-redis php-memcached
ohcc@163com 21-Dec-2016 03:59
php 7.1+ supports utf-8 paths and I/O streams on Windows. file system functions now return utf-8 results, you don't need to convert file paths between character sets.