-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.1.2 deprecation error, file_helper.php (line nr. 231) #6122
Comments
propose fix for bcit-ci#6122 unsure if this is a valid fix, my code (while using this function) doesn't actually use this function. $filedata will return bool(false) on "/var/www/html/project/application/cache/index.html" Causing the error posted in the issue.
I was able to reproduce the error; and turns out that a get_dir_file_info() on a index.html file returns a false. I proposed a fix, but i'm not very familiar with the code, or what it should do, so probably might be rejected. |
Thank you for the feedback, since you found a better/correct solution, please make a PR so mine can be rejected. I only wanted to share the error, and quickly find a way to suppress it. |
Hey,
I seen this error on PHP 8.1.2 with a git clone of this repo (3.2.0-dev), sadly I can reproduce it ... I wanted to share it if someone can track it down and fix it.
The code involved :
https://github.com/bcit-ci/CodeIgniter/blob/develop/system/helpers/file_helper.php#L231
If I see the error again, ill try to find out what function exactly is being deprecated. (but sadly this was a once "off" issue)
The text was updated successfully, but these errors were encountered: