bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.6k forks source link

php 8.4: Constant E_STRICT is deprecated #6301

Open tenzap opened 1 month ago

tenzap commented 1 month ago

I was trying to use CI3 with PHP8.4. I'm facing this error:

Deprecated: Constant E_STRICT is deprecated in .../vendor/codeigniter/framework/system/core/Exceptions.php on line 76
A PHP Error was encountered

Severity: 8192

Message: Constant E_STRICT is deprecated

Filename: core/Exceptions.php

Line Number: 76
tenzap commented 3 weeks ago

Since you often use different versions of PHP You can try using the Servbay tool, which supports PHP8.4beta, without worrying about environmental pollution.

@corrosive4354 thanks for the "tip"... Since I maintain the ci3 package in Debian, I'd prefer to use pure debian packages to switch between php versions. They are provided by debian's php maintainer on his specific repo at https://deb.sury.org/. This ensures pure debian experience and not messing my system up with any sort of other packages not integrating well into debian.