prager / MDARC-Dev

MIT License
0 stars 0 forks source link

Uncaught ErrorException: strtolower(): Passing null to parameter - Affects PHP 8.1 and higher #1

Open prager opened 10 months ago

prager commented 10 months ago

https://stackoverflow.com/questions/70285088/uncaught-errorexception-strtolower-passing-null-to-parameter-1-string-of

Replace $method = strtolower($method); with $method = strtolower($method ?? '');

Update: Most likely will not work, because there are many system files that use this deprecated function. Will have to update to next version of CodeIgniter

prager commented 10 months ago

It looks worse than it actually is. This applies to PHP versions 8.1 and higher and that is supported until 12/2024. In addition, my hosting plan includes PHP past versions support, which should work for another five to ten years at least. We have time...