Welcome Guest, Not a member yet? Register   Sign In
PHP 8.0/8.1 Support
#8

CI 3.1.13 is working with PHP 8.0.3 like a charm. With PHP 8.1.4 I get this error:

Message: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated
Filename: core/URI.php
Line Number: 641

ORIGINAL:
PHP Code:
return ltrim(load_class('Router''core')->directory'/').implode('/'$this->rsegments); 


CHANGED/WORKING:
PHP Code:
return ltrim((string)load_class('Router''core')->directory'/').implode('/'$this->rsegments); 
Reply


Messages In This Thread
PHP 8.0/8.1 Support - by TheAdmiral - 03-08-2022, 12:07 AM
RE: PHP 8.0/8.1 Support - by php_rocs - 03-08-2022, 06:38 AM
RE: PHP 8.0/8.1 Support - by TheAdmiral - 03-08-2022, 09:52 AM
RE: PHP 8.0/8.1 Support - by kenjis - 03-09-2022, 01:24 AM
RE: PHP 8.0/8.1 Support - by TheAdmiral - 03-09-2022, 08:26 AM
RE: PHP 8.0/8.1 Support - by kenjis - 03-09-2022, 05:15 PM
RE: PHP 8.0/8.1 Support - by kilishan - 03-09-2022, 09:05 PM
RE: PHP 8.0/8.1 Support - by Pyerro - 03-20-2022, 03:12 PM
RE: PHP 8.0/8.1 Support - by InsiteFX - 03-21-2022, 12:51 AM
RE: PHP 8.0/8.1 Support - by mankeswar - 03-21-2022, 01:00 AM
RE: PHP 8.0/8.1 Support - by TheAdmiral - 06-22-2022, 05:01 AM
RE: PHP 8.0/8.1 Support - by n2fole00 - 10-09-2022, 09:35 AM
RE: PHP 8.0/8.1 Support - by Viver - 01-12-2023, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB