@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

APC: Set ttl to 0 when ttl is not given

Summary:
Passing null as a value for parameter $ttl is deprecated.
Omitting the parameter is considered to be equivalent to 0.

Bug: T15064

Test Plan: * Looked in the deprecation log and did not see a deprecation message from apc.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25833

+5 -1
+5 -1
src/infrastructure/cache/PhutilAPCKeyValueCache.php
··· 38 38 return $results; 39 39 } 40 40 41 - public function setKeys(array $keys, $ttl = null) { 41 + public function setKeys(array $keys, $ttl = 0) { 42 42 static $is_apcu; 43 43 if ($is_apcu === null) { 44 44 $is_apcu = self::isAPCu(); 45 + } 46 + 47 + if ($ttl === null) { 48 + $ttl = 0; 45 49 } 46 50 47 51 // NOTE: Although modern APC supports passing an array to `apc_store()`,