Skip to content

Commit 1a87df5

Browse files
authored
Merge pull request #5 from JorgenEvens/bug/apciterator-constructor
[apc] fixes different signature for apc and apcu iterators.
2 parents e341c06 + 2d994a2 commit 1a87df5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ function apcu_cache_info($limited = false) { return apc_cache_info('user', $limi
44
function apcu_sma_info($limited = false) { return apc_sma_info($limited); }
55
function apcu_fetch($key, &$success = null) { return apc_fetch($key, $success); }
66
function apcu_delete($key) { return apc_delete($key); }
7-
class ApcuIterator extends ApcIterator {}
7+
class ApcuIterator extends ApcIterator {
8+
function __construct($search = null) { parent::__construct('user', $search); }
9+
}
810
}
911

1012
$apcVersion = extension_loaded('apcu') ? 'APCu' : 'APC';

0 commit comments

Comments
 (0)