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

setmulti Error :: must be of type int, int given #1514

Closed
davidteruelguillem opened this issue Apr 12, 2022 · 1 comment
Closed

setmulti Error :: must be of type int, int given #1514

davidteruelguillem opened this issue Apr 12, 2022 · 1 comment
Labels
invalid This doesn't seem right

Comments

@davidteruelguillem
Copy link

davidteruelguillem commented Apr 12, 2022

If you copy the next example from https://www.php.net/manual/es/memcached.setmulti.php

<?php
$m = new Memcached();
$m->addServer('localhost', 11211);

$items = array(
    'key1' => 'value1',
    'key2' => 'value2',
    'key3' => 'value3'
);
$m->setMulti($items, time() + 300);

You will get the error "PHP Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given" .

It works in php8.0, but not in php8.1.

The Error " must be of type int, int given" is a bit confusing.

@cmb69
Copy link
Member

cmb69 commented Apr 12, 2022

This isn't a documentation issue (let alone a doc-es) issue. The actual problem is already tracked as php-memcached-dev/php-memcached#509, but as long as no maintainer of memcached can reproduce it, chances for a fix are slim.

@cmb69 cmb69 closed this as completed Apr 12, 2022
@cmb69 cmb69 added the invalid This doesn't seem right label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants