Skip to content
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

CI3 and PHP8.1(ctype_digit(): Argument of type int will be interpreted as string in the future) #6285

Open
Obata2024 opened this issue Jun 26, 2024 · 1 comment

Comments

@Obata2024
Copy link

When trying to use PostgreSQL under the given conditions, the following error occurs:

A PHP Error was encountered
Severity: 8192

Message: ctype_digit(): Argument of type int will be interpreted as string in the future

Filename: postgre/postgre_driver.php

Line Number: 98

Should I modify the postgre/postgre_driver.php file to resolve this? If it’s acceptable, I can submit a PR.

Also, has anyone resolved the same issue using an override?
I attempted to create a custom class under the application/core directory to override it, but this error still persists.

@jamieburchell
Copy link
Contributor

jamieburchell commented Jun 30, 2024

Looks to me that the ctype part of that if statement should just be removed. As far as I can see so far none of the other drivers check anything other than that the value isn't empty before using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants