提交 e50a2f33 编写于 作者: H heyanlong

predis

上级 114c4187
......@@ -133,6 +133,7 @@ ZEND_API void sky_execute_ex(zend_execute_data *execute_data) {
array_init(&tags);
if (strcmp(class_name, "Predis\\Client") == 0 && strcmp(function_name, "__call") == 0) {
add_assoc_string(&tags, "db.type", "redis");
uint32_t arg_count = ZEND_CALL_NUM_ARGS(execute_data);
zval *fname = ZEND_CALL_ARG(execute_data, 1);
for (int i = 1; i < arg_count + 1; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册