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

(This post was last modified: 03-23-2022, 07:13 AM by Smoczysk0.)

(03-20-2022, 03:12 PM)Pyerro Wrote: 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: Dziewczyny z dubaju CDA można obejrzeć również na stronie z filmami online. Polecam każdemu kto lubi kino i dobry film. 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); 

Thanks for reply. I will try it with my 8.1.4 version.
Reply
#12

OP here. In case anyone is curious, I installed latest CI3 a couple months ago and combined it with PHP 8.1. No errors/warnings/notices. Thanks everyone.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB