Changes in PHP 7.1?

wpspeedster

Well-known member
Registered
Joined
May 6, 2016
Messages
120
Points
18
PHP 7.1 was released earlier this month. Did any one use this version, what are the features to come in PHP 7.1? I wanted to give it a try.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Performances are better, several php7.0 bugs are fixed, but only few CMS are compatible currently. Make sure you can rollback quickly because it will probably not work properly.
 

fwh

Administrator
Staff Member
Joined
Dec 8, 2012
Messages
773
Points
63
fwh
Are you talking PHP7.0 or PHP7.1? 2 months ago I tried to install memcached on PHP7.0 but failed and I am going to have a VPS to test this again because I heard that PHP 7.1 will support memcached. I want our forum run with php7.x, mariadb, memcached...which helps boosting loading speed better.
 

Laurence Flynn

Well-known member
Registered
Joined
Dec 31, 2016
Messages
92
Points
8
Yep, got it working with PHP 7.1 but couldn't on 7.0 even though some admins say they could hack it in.

Code:
sudo apt-get install gcc make autoconf libc-dev pkg-config
sudo apt-get install zlib1g-dev
sudo apt-get install libmemcached-dev
git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
git checkout php7
/opt/sp/php7.1/bin/phpize
PATH=/opt/sp/php7.1/bin:$PATH ./configure --disable-memcached-sasl
make
sudo make install
sudo bash -c "echo extension=memcached.so > /etc/php7.1-sp/conf.d/memcached.ini"
sudo service php7.1-fpm-sp restart
There's a few dependencies in there but generally should work.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,498
Points
63
David Beroff
What operating system are you running these commands with? Centos, Debian or Ubuntu?

I failed to run Git and Make commands on my SSH in the past. I am also caring on this PHP version and would give it a try.
 

WPCycle

Well-known member
Hosting Provider
Registered
Joined
Dec 31, 2016
Messages
123
Points
18
A lot of issues that existed in 7.0 have been taken care of with 7.1

Depending on the script you're running, a lot of issues in 7.0 were actually from bad coding. A lot of WordPress themes and plugins broke due to bad coding that 7.0 pointed out.
 

Laurence Flynn

Well-known member
Registered
Joined
Dec 31, 2016
Messages
92
Points
8
This was Debian and was a standalone install. So no cPanel or Plesk (which makes it even harder).
 

cybexhosting

Member
Hosting Provider
Registered
Joined
Nov 14, 2016
Messages
50
Points
8
PHP 7.1 is the first minor release for PHP 7 version. New release supports utf-8 paths and file system functions now return utf-8 results. Also the mcrypt extension is depreciated and it will be removed from the core and into PECL in PHP 7.2.
 
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top