Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
memcache-2996055
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
memcache-2996055
Commits
68c88c2d
Commit
68c88c2d
authored
5 years ago
by
Jeremy Andrews
Browse files
Options
Downloads
Patches
Plain Diff
detect auth issues on install
parent
6b1018ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memcache.install
+16
-0
16 additions, 0 deletions
memcache.install
with
16 additions
and
0 deletions
memcache.install
+
16
−
0
View file @
68c88c2d
...
...
@@ -30,6 +30,22 @@ function memcache_enable() {
if
(
!
_memcache_pecl_version_valid
())
{
$warning
=
TRUE
;
}
// If ASCII protocol authentication is enabled, perform extra tests.
if
(
_dmemcache_use_ascii_auth
())
{
// Verify minimum required memcached version for ASCII protocol authentication is installed.
$version
=
_memcached_ascii_auth_version_valid
(
MEMCACHED_ASCII_AUTH_MINIMUM
);
// TRUE means version valid, FALSE means we failed to connect and will throw a different error.
if
(
$version
!==
TRUE
&&
$version
!==
FALSE
)
{
$error
=
TRUE
;
}
else
{
$version
=
_memcached_ascii_auth_version_valid
(
MEMCACHED_ASCII_AUTH_RECOMMENDED
);
// TRUE means version valid, FALSE means we failed to connect and will throw a different error.
if
(
$version
!==
TRUE
&&
$version
!==
FALSE
)
{
$warning
=
TRUE
;
}
}
}
// Make a test connection to all configured memcache servers.
$memcache_servers
=
variable_get
(
'memcache_servers'
,
array
(
'127.0.0.1:11211'
=>
'default'
));
foreach
(
$memcache_servers
as
$server
=>
$bin
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment