Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit afa5fa4

Browse files
committed
add missing apc_fetch() argument
1 parent f8912b0 commit afa5fa4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/naive-benchmark.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ private static function getImplementations(
127127
'uncached prefix match' => () ==>
128128
PrefixMatchingResolver::fromFlatMap($map),
129129
'cached prefix map' => () ==> {
130-
$prefix_map = \apc_fetch(__FUNCTION__);
130+
$_success = null;
131+
$prefix_map = \apc_fetch(__FUNCTION__, inout $_success);
131132
if ($prefix_map === false) {
132133
$prefix_map =
133134
Dict\map($map, $v ==> PrefixMatching\PrefixMap::fromFlatMap($v));

src/router/BaseRouter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ protected function getResolver(): IResolver<TResponder> {
6666
if (is_dev()) {
6767
$routes = null;
6868
} else {
69-
$routes = \apc_fetch(__FILE__.'/cache');
69+
$_success = null;
70+
$routes = \apc_fetch(__FILE__.'/cache', inout $_success);
7071
if ($routes === false) {
7172
$routes = null;
7273
}

0 commit comments

Comments
 (0)