[php-src] Issue #8036: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given

From: Date: Fri, 04 Feb 2022 15:11:46 +0000
Subject: [php-src] Issue #8036: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239486@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8036 Author: momala454 ### Description The following code: ```php <?php declare(strict_types=1); error_reporting(E_ALL); ini_set('display_errors', true); $m = new Memcached(); $bla = 2 + time(); $m->set('hello', 'world', $bla); $m->setMulti(['hello' => 'world'], 2); ``` Resulted in this output: ``` Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given ``` But I expected this output instead: ``` No error ``` ### PHP Version 8.1.2 ### Operating System Debian 11.2

« previous php.bugs (#239486) next »