提交 e15685c6 编写于 作者: G goerzh

stop to register service when exec php script

上级 f9aa2efe
...@@ -930,7 +930,12 @@ PHP_MINIT_FUNCTION (skywalking) { ...@@ -930,7 +930,12 @@ PHP_MINIT_FUNCTION (skywalking) {
/* If you have INI entries, uncomment these lines /* If you have INI entries, uncomment these lines
*/ */
if (SKYWALKING_G(enable)) { if (SKYWALKING_G(enable)) {
if (strcasecmp("cli", sapi_module.name) == 0) {
sky_close = 1;
} else {
module_init(); module_init();
}
if (sky_close == 1) { if (sky_close == 1) {
return SUCCESS; return SUCCESS;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册