From afa5fa468c3cbc30d0b455270082095d47de948a Mon Sep 17 00:00:00 2001 From: jjergus Date: Tue, 27 Aug 2019 15:01:37 -0700 Subject: [PATCH] add missing apc_fetch() argument --- bin/naive-benchmark.php | 3 ++- src/router/BaseRouter.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/naive-benchmark.php b/bin/naive-benchmark.php index 8b0bfeb..e7044dd 100644 --- a/bin/naive-benchmark.php +++ b/bin/naive-benchmark.php @@ -127,7 +127,8 @@ private static function getImplementations( 'uncached prefix match' => () ==> PrefixMatchingResolver::fromFlatMap($map), 'cached prefix map' => () ==> { - $prefix_map = \apc_fetch(__FUNCTION__); + $_success = null; + $prefix_map = \apc_fetch(__FUNCTION__, inout $_success); if ($prefix_map === false) { $prefix_map = Dict\map($map, $v ==> PrefixMatching\PrefixMap::fromFlatMap($v)); diff --git a/src/router/BaseRouter.php b/src/router/BaseRouter.php index 3ffe2bd..8616e5c 100644 --- a/src/router/BaseRouter.php +++ b/src/router/BaseRouter.php @@ -66,7 +66,8 @@ protected function getResolver(): IResolver { if (is_dev()) { $routes = null; } else { - $routes = \apc_fetch(__FILE__.'/cache'); + $_success = null; + $routes = \apc_fetch(__FILE__.'/cache', inout $_success); if ($routes === false) { $routes = null; }