goman60 Posted March 3, 2021 Posted March 3, 2021 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.
wolstech Posted March 3, 2021 Posted March 3, 2021 (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 March 3, 2021 by wolstech Substitute is not case sensitive 1
garrigue Posted May 9, 2021 Posted May 9, 2021 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
Krydos Posted May 12, 2021 Posted May 12, 2021 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now