Jump to content

Recommended Posts

Posted

Can we have the ability to upgrade to PHP 8.0.1? I would like to use str_contains which is only available in 8.0 or up. Please consider giving accounts the ability to upgrade their PHP version.

Posted (edited)

Our versions of cPanel do not support PHP 8.0, so we are unable to support this at this time.

 

It's logically equivalent to this except for the case sensitivity:

function str_contains($haystack,$needle)
{
     return !empty(stristr($haystack,$needle));
}

EDIT: Not case sensitive like str_contains, but is a boolean return function that checks for presence of a string like it. In all prior versions of PHP, the stristr() method is the standard. Anyone who's used PHP for any length of time likely will know and use that method unless they really need it to be case-sensitive (which in my experience is usually not desired).

Edited by wolstech
Substitute is not case sensitive
  • Like 1
  • 2 months later...
Posted

Hello @wolstech

 

So if cpanel do not support php 8, what are you going to do when php 7 will not be supported anymore and become a security matter? Thank you

Posted

We'll be adding php 7.4 and php 8.0 soon. Tommy will get it first followed by Ricky and eventually Johnny as well. We will continue supporting 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, and 7.3 as well.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...