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

Commit

Permalink
add missing apc_fetch() argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Aug 27, 2019
1 parent f8912b0 commit afa5fa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/naive-benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
3 changes: 2 additions & 1 deletion src/router/BaseRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ protected function getResolver(): IResolver<TResponder> {
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;
}
Expand Down

0 comments on commit afa5fa4

Please sign in to comment.