-
Notifications
You must be signed in to change notification settings - Fork 327
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: Memcached::setMulti() throws invalid type error for $expiration #484
Comments
@krakjoe With the long time since last release and lack of support > php 7.4, do you know if a php-memcached release is planned? I don't know when/how we'll be able to test with this. |
Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given - php8.1 |
Would be awesome if @krakjoe or any of the php-memcached-dev team could plan to release a new version including this fix in the near future so PHP 8.1 can properly utilize memcache 😄 |
In case somebody stumbles upon this issue, you can install newer version of php memcached extension from ondrej repositoy
version 3.1.5 gave this error message, but version 3.2.0 was ok for me |
I created a php bug initially - https://bugs.php.net/bug.php?id=81063.
Even when passing an int correctly, it throws an error expecting an int. I don't know if this is related to the implementation, stubs or PHP core. However, no other methods are throwing this error.
The text was updated successfully, but these errors were encountered: