From 6e3e1e31e92fd57f12471461fc3496ac057757b0 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 15 Jun 2015 12:31:24 +0200 Subject: [PATCH] Add phpdbg to allowed cli-SAPIs in opcache --- ext/opcache/ZendAccelerator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.50.1