com php-src: Add phpdbg to allowed cli-SAPIs in opcache: ext/opcache/ZendAccelerator.c
| From: | Bob Weinand | Date: | Mon, 15 Jun 2015 10:31:46 +0000 |
| Subject: | com php-src: Add phpdbg to allowed cli-SAPIs in opcache: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87276@lists.php.net to get a copy of this message | ||
Commit: 6e3e1e31e92fd57f12471461fc3496ac057757b0
Author: Bob Weinand <bobwei9@hotmail.com> Mon, 15 Jun 2015 12:31:24 +0200
Parents: 0a21a0c752a06d25704e04c15464700f75164849
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e3e1e31e92fd57f12471461fc3496ac057757b0
Log:
Add phpdbg to allowed cli-SAPIs in opcache
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 3668421..18e9428 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -2355,8 +2355,9 @@ static inline int accel_find_sapi(void)
return SUCCESS;
}
}
- if (ZCG(accel_directives).enable_cli &&
- strcmp(sapi_module.name, "cli") == 0) {
+ if (ZCG(accel_directives).enable_cli && (
+ strcmp(sapi_module.name, "cli") == 0
+ || strcmp(sapi_module.name, "phpdbg") == 0)) {
return SUCCESS;
}
}