From: Bob Weinand Date: Mon, 15 Jun 2015 10:31:24 +0000 (+0200) Subject: Add phpdbg to allowed cli-SAPIs in opcache X-Git-Tag: php-7.0.0alpha2~2^2~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e3e1e31e92fd57f12471461fc3496ac057757b0;p=php Add phpdbg to allowed cli-SAPIs in opcache --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 36684218d8..18e94287a2 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; } }