Stikked icon indicating copy to clipboard operation
Stikked copied to clipboard

Fix compatibility problems with PHP 8.

Open k4bek4be opened this issue 1 year ago • 4 comments

Tested with PHP 8.1.20. Includes fixes from misterludvigsen and ColdSphinX.

k4bek4be avatar Oct 28 '23 13:10 k4bek4be

Unfortunately this isn't working for PHP 8.3 anymore.

I get tons of errors like this:

A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: ...
Line: 284
Function: require_once

A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: ....
Line: 284
Function: require_once

sjau avatar Mar 27 '24 09:03 sjau

Unfortunately this isn't working for PHP 8.3 anymore.

I get tons of errors like this:

A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: ...
Line: 284
Function: require_once

A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: ....
Line: 284
Function: require_once

Solution has been already implemented in codeigniter here:

https://github.com/bcit-ci/CodeIgniter/pull/6173/files

PJanisio avatar Jun 03 '24 08:06 PJanisio