Skip to content

Commit

Permalink
Merge pull request #378 from iclukas/APC-fatal-error-with-auto-classl…
Browse files Browse the repository at this point in the history
…oader

Fix fatal error with auto classloader when APC(U)Iterator class does …
  • Loading branch information
tedivm authored Feb 19, 2018
2 parents 83fc5d6 + 6b373c1 commit a6f14f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stash/Driver/Apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getDefaultOptions()

// Test using the APCUIterator, as some versions of APCU have the
// custom functions but not the iterator class.
'apcu' => class_exists('\APCUIterator')
'apcu' => class_exists('\APCUIterator', false)
);
}

Expand Down Expand Up @@ -161,7 +161,7 @@ public function purge()
public static function isAvailable()
{
// Some versions of HHVM are missing the APCIterator
if (!class_exists('\APCIterator') && !class_exists('\APCUIterator')) {
if (!class_exists('\APCIterator', false) && !class_exists('\APCUIterator', false)) {
return false;
}

Expand Down

0 comments on commit a6f14f7

Please sign in to comment.