Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/spec/PhabricatorDataCacheSpec.php
Context not available. | |||||
// If this key isn't in the current cache namespace, don't reveal any | // If this key isn't in the current cache namespace, don't reveal any | ||||
// information about it. | // information about it. | ||||
$namespace = PhabricatorEnv::getEnvConfig('phabricator.cache-namespace'); | $namespace = PhabricatorEnv::getEnvConfig('phabricator.cache-namespace'); | ||||
if (strncmp($key, $namespace.':', strlen($namespace) + 1)) { | if (strncmp($key, $namespace.':', @strlen($namespace) + 1)) { | ||||
return '<other-namespace>'; | return '<other-namespace>'; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0