From db160b247c7f8c1fd01d41aa293aa0ae36e9d79a Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Mon, 23 Sep 2019 15:59:06 +0200 Subject: [PATCH] regenerated files --- generated/apcu.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/generated/apcu.php b/generated/apcu.php index 6c2094c5..fa0ef154 100644 --- a/generated/apcu.php +++ b/generated/apcu.php @@ -53,14 +53,15 @@ function apcu_cas(string $key, int $old, int $new): void * @param int $step The step, or value to decrease. * @param bool $success Optionally pass the success or fail boolean value to * this referenced variable. + * @param int $ttl TTL to use if the operation inserts a new value (rather than decrementing an existing one). * @return int Returns the current value of key's value on success * @throws ApcuException * */ -function apcu_dec(string $key, int $step = 1, ?bool &$success = null): int +function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int { error_clear_last(); - $result = \apcu_dec($key, $step, $success); + $result = \apcu_dec($key, $step, $success, $ttl); if ($result === false) { throw ApcuException::createFromPhpError(); } @@ -96,14 +97,15 @@ function apcu_delete($key): void * @param int $step The step, or value to increase. * @param bool $success Optionally pass the success or fail boolean value to * this referenced variable. + * @param int $ttl TTL to use if the operation inserts a new value (rather than incrementing an existing one). * @return int Returns the current value of key's value on success * @throws ApcuException * */ -function apcu_inc(string $key, int $step = 1, ?bool &$success = null): int +function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl = 0): int { error_clear_last(); - $result = \apcu_inc($key, $step, $success); + $result = \apcu_inc($key, $step, $success, $ttl); if ($result === false) { throw ApcuException::createFromPhpError(); }