Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
cd0ee2ff
S
SkyAPM-php-sdk
项目概览
SkyAPM
/
SkyAPM-php-sdk
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyAPM-php-sdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cd0ee2ff
编写于
8月 05, 2019
作者:
w60514603
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
replace sky_close with application_instance
上级
089fc3da
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
10 deletion
+6
-10
skywalking.c
skywalking.c
+6
-10
未找到文件。
skywalking.c
浏览文件 @
cd0ee2ff
...
...
@@ -69,7 +69,6 @@ ZEND_DECLARE_MODULE_GLOBALS(skywalking)
static
int
le_skywalking
;
static
int
application_instance
=
0
;
static
int
application_id
=
0
;
static
int
sky_close
=
0
;
static
int
sky_increment_id
=
0
;
static
int
cli_debug
=
0
;
...
...
@@ -314,7 +313,7 @@ ZEND_API void sky_execute_ex(zend_execute_data *execute_data) {
ZEND_API
void
sky_execute_internal
(
zend_execute_data
*
execute_data
,
zval
*
return_value
)
{
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
if
(
ori_execute_internal
)
{
ori_execute_internal
(
execute_data
,
return_value
);
}
else
{
...
...
@@ -628,7 +627,7 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
void
sky_curl_exec_handler
(
INTERNAL_FUNCTION_PARAMETERS
)
{
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
orig_curl_exec
(
INTERNAL_FUNCTION_PARAM_PASSTHRU
);
return
;
}
...
...
@@ -867,7 +866,7 @@ void sky_curl_exec_handler(INTERNAL_FUNCTION_PARAMETERS)
}
void
sky_curl_setopt_handler
(
INTERNAL_FUNCTION_PARAMETERS
)
{
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
orig_curl_setopt
(
INTERNAL_FUNCTION_PARAM_PASSTHRU
);
return
;
}
...
...
@@ -897,7 +896,7 @@ void sky_curl_setopt_handler(INTERNAL_FUNCTION_PARAMETERS) {
void
sky_curl_setopt_array_handler
(
INTERNAL_FUNCTION_PARAMETERS
)
{
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
orig_curl_setopt_array
(
INTERNAL_FUNCTION_PARAM_PASSTHRU
);
return
;
}
...
...
@@ -924,7 +923,7 @@ void sky_curl_setopt_array_handler(INTERNAL_FUNCTION_PARAMETERS) {
void
sky_curl_close_handler
(
INTERNAL_FUNCTION_PARAMETERS
)
{
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
orig_curl_close
(
INTERNAL_FUNCTION_PARAM_PASSTHRU
);
return
;
}
...
...
@@ -1614,10 +1613,7 @@ PHP_RINIT_FUNCTION(skywalking)
}
sky_register
();
if
(
application_instance
==
0
)
{
sky_close
=
1
;
return
SUCCESS
;
}
else
{
sky_close
=
0
;
}
sky_increment_id
++
;
if
(
sky_increment_id
>=
9999
)
{
...
...
@@ -1639,7 +1635,7 @@ PHP_RSHUTDOWN_FUNCTION(skywalking)
if
(
strcasecmp
(
"cli"
,
sapi_module
.
name
)
==
0
&&
cli_debug
==
0
)
{
return
SUCCESS
;
}
if
(
sky_close
==
1
)
{
if
(
application_instance
==
0
)
{
return
SUCCESS
;
}
sky_flush_all
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录