Open
Description
If php 8.1.13 i'm getting the next confusing error:
TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given
This error does not happen in PHP 8.0
If php 8.1.13 i'm getting the next confusing error:
TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given
This error does not happen in PHP 8.0
Activity
remicollet commentedon Mar 15, 2022
Can you provide a simple script to reproduce ?
(setMulti is covered by test suite, and tests are OK)
remicollet commentedon Mar 15, 2022
And also confirm PHP and extension versions used
Krakozaber commentedon Mar 15, 2022
Waiting for the release, not RC. Some sources do not compile it.
remicollet commentedon Mar 15, 2022
GA won't happen if nobody check the RC :p
Skip memcached tests on PHP 8.1
davidteruelguillem commentedon Apr 11, 2022
If you copy the next example from https://www.php.net/manual/es/memcached.setmulti.php
You will get the error "PHP Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given" only in php8.1, but not in php8.0.
The Error " must be of type int, int given" is a bit confusing.
remicollet commentedon Apr 11, 2022
Sorry, cannot reproduce (using 3.2.0)
justinclloyd commentedon Sep 27, 2023
I am getting this issue on 3.2.0 on Ubuntu 22.04 with PHP 8.1 when trying to upgrade MediaWiki 1.38 (Ubuntu 20.04) to 1.39.
justinclloyd commentedon Feb 20, 2025
I just tested this again on a new Ubuntu 22.04 server with the
php-cli
package version8.1+92ubuntu1
and pecl-memcached 3.3.0. I used the little PHP test script but did not get the error message provided. So my next test will be a full test in my dev MediaWiki environmen on new 22.04 servers.