提交 2c332f16 编写于 作者: w60514603's avatar w60514603

remove ./configure --enable-yarclient

上级 4f355c1d
......@@ -22,7 +22,7 @@ Host in Beijing. Go to [demo](http://106.75.237.45:8080/).
1. CURL
1. PDO
1. Mysqli
1. Yar Client ([Yar](https://www.php.net/manual/en/book.yar.php), with `./configure --enable-yarclient=yes`)
1. Yar Client ([Yar](https://www.php.net/manual/en/book.yar.php))
## Contact Us
* Submit an [issue](https://github.com/SkyAPM/SkyAPM-php-sdk/issues)
......
PHP_ARG_ENABLE(skywalking, whether to enable skywalking support,
[ --enable-skywalking Enable skywalking support])
PHP_ARG_ENABLE(yarclient, whether to enable yar client support,
[ --enable-yarclient Enable yar client support], no, no)
if test "$PHP_SKYWALKING" != "no"; then
PHP_NEW_EXTENSION(skywalking, \
skywalking.c \
......@@ -11,7 +8,3 @@ if test "$PHP_SKYWALKING" != "no"; then
encode.c \
, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi
if test "$PHP_YARCLIENT" != "no"; then
AC_DEFINE(ENABLE_YAR_CLIENT, 1, [Enable yar client support])
fi
......@@ -19,7 +19,7 @@
* php curl扩展发出的请求
* php PDO扩展发出的请求
* php mysqli扩展发出的请求
* php yar扩展(client)发出的请求: (需要在编译时指定:`./configure --enable-yarclient=yes`来启用)
* php yar扩展(client)发出的请求
1. skywalking_get_trace_info()函数的返回值格式?
* 返回值为数组。如果扩展加载但是未启用(`skywalking.enable=0`), 则返回空数组
......
......@@ -351,9 +351,7 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
strcat(operationName, "->");
strcat(operationName, function_name);
}
}
#ifdef ENABLE_YAR_CLIENT
if (strcmp(class_name, "Yar_Client") == 0) {
} else if (strcmp(class_name, "Yar_Client") == 0) {
if (strcmp(function_name, "__call") == 0) {
componentId = COMPONENT_GRPC;
component = (char *) emalloc(strlen("Yar_Client") + 1);
......@@ -370,7 +368,6 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
#endif
} else if (function_name != NULL) {
if (strcmp(function_name, "mysqli_query") == 0) {
class_name = "mysqli";
......@@ -493,9 +490,7 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
}
#ifdef ENABLE_YAR_CLIENT
if (strcmp(class_name, "Yar_Client") == 0) {
} else if (strcmp(class_name, "Yar_Client") == 0) {
if (strcmp(function_name, "__call") == 0) {
zval rv, _uri;
ZVAL_STRING(&_uri, "_uri");
......@@ -510,7 +505,6 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
#endif
zval temp;
zval *spans = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册