]> granicus.if.org Git - php/commitdiff
Add phpdbg to allowed cli-SAPIs in opcache
authorBob Weinand <bobwei9@hotmail.com>
Mon, 15 Jun 2015 10:31:24 +0000 (12:31 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 15 Jun 2015 10:31:46 +0000 (12:31 +0200)
ext/opcache/ZendAccelerator.c

index 36684218d8f83127b91a01359c927515200bd655..18e94287a2a4b661b6fa47e8833ba01a80e196fb 100644 (file)
@@ -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;
                }
        }