Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
b88b0fb4
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
b88b0fb4
编写于
12月 09, 2019
作者:
何
何延龙
提交者:
GitHub
12月 09, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #167 from SkyAPM/develop
add package.xml
上级
f688f071
4be9fb83
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
276 addition
and
1 deletion
+276
-1
package-template.xml
package-template.xml
+47
-0
package.xml
package.xml
+158
-0
pecl-package.php
pecl-package.php
+70
-0
php_skywalking.h
php_skywalking.h
+1
-1
未找到文件。
package-template.xml
0 → 100644
浏览文件 @
b88b0fb4
<?xml version="1.0" encoding="UTF-8"?>
<package
packagerversion=
"1.9.4"
version=
"2.0"
xmlns=
"http://pear.php.net/dtd/package-2.0"
xmlns:tasks=
"http://pear.php.net/dtd/tasks-1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"
>
<name>
skywalking
</name>
<channel>
pecl.php.net
</channel>
<summary>
The PHP instrument agent for Apache SkyWalking.
</summary>
<description>
The package is the PHP instrumentation agent, which is compatible with Apache SkyWalking backend and others compatible agents/SDKs.
</description>
<lead>
<name>
Yanlong He
</name>
<user>
yanlong
</user>
<email>
yanlong@php.net
</email>
<active>
yes
</active>
</lead>
<date>
{{date}}
</date>
<version>
<release>
{{version}}
</release>
<api>
{{version}}
</api>
</version>
<stability>
<release>
stable
</release>
<api>
stable
</api>
</stability>
<license
uri=
"http://www.apache.org/licenses/LICENSE-2.0.html"
>
Apache2.0
</license>
<notes>
Support php7.4
</notes>
<contents>
<dir
name=
"/"
>
{{file_list}}
</dir>
</contents>
<dependencies>
<required>
<php>
<min>
7.1.0
</min>
</php>
<pearinstaller>
<min>
1.4.0
</min>
</pearinstaller>
</required>
</dependencies>
<providesextension>
skywalking
</providesextension>
</package>
\ No newline at end of file
package.xml
0 → 100644
浏览文件 @
b88b0fb4
<?xml version="1.0" encoding="UTF-8"?>
<package
packagerversion=
"1.9.4"
version=
"2.0"
xmlns=
"http://pear.php.net/dtd/package-2.0"
xmlns:tasks=
"http://pear.php.net/dtd/tasks-1.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"
>
<name>
skywalking
</name>
<channel>
pecl.php.net
</channel>
<summary>
The PHP instrument agent for Apache SkyWalking.
</summary>
<description>
The package is the PHP instrumentation agent, which is compatible with Apache SkyWalking backend and others compatible agents/SDKs.
</description>
<lead>
<name>
Yanlong He
</name>
<user>
yanlong
</user>
<email>
yanlong@php.net
</email>
<active>
yes
</active>
</lead>
<date>
2019-12-09
</date>
<version>
<release>
3.2.4
</release>
<api>
3.2.4
</api>
</version>
<stability>
<release>
stable
</release>
<api>
stable
</api>
</stability>
<license
uri=
"http://www.apache.org/licenses/LICENSE-2.0.html"
>
Apache2.0
</license>
<notes>
Support php7.4
</notes>
<contents>
<dir
name=
"/"
>
<file
role=
"doc"
name=
"CREDITS"
/>
<file
role=
"doc"
name=
"EXPERIMENTAL"
/>
<file
role=
"doc"
name=
"LICENSE"
/>
<file
role=
"doc"
name=
"README.md"
/>
<file
role=
"src"
name=
"b64.h"
/>
<file
role=
"src"
name=
"bak/.gitignore"
/>
<file
role=
"doc"
name=
"bak/README.md"
/>
<file
role=
"doc"
name=
"bak/README_ZH.md"
/>
<file
role=
"src"
name=
"bak/SkyWalking.php"
/>
<file
role=
"src"
name=
"bak/demo.php"
/>
<file
role=
"src"
name=
"components.h"
/>
<file
role=
"src"
name=
"config.m4"
/>
<file
role=
"src"
name=
"config.w32"
/>
<file
role=
"src"
name=
"decode.c"
/>
<file
role=
"doc"
name=
"docs/README.md"
/>
<file
role=
"doc"
name=
"docs/README_ZH.md"
/>
<file
role=
"doc"
name=
"docs/install-agent.md"
/>
<file
role=
"doc"
name=
"docs/quick-start.md"
/>
<file
role=
"doc"
name=
"docs/zh/change-log.md"
/>
<file
role=
"doc"
name=
"docs/zh/install-sdk.md"
/>
<file
role=
"doc"
name=
"docs/zh/qa.md"
/>
<file
role=
"doc"
name=
"docs/zh/start-agent.md"
/>
<file
role=
"src"
name=
"encode.c"
/>
<file
role=
"src"
name=
"php.ini"
/>
<file
role=
"src"
name=
"php_skywalking.h"
/>
<file
role=
"src"
name=
"skywalking.c"
/>
<file
role=
"src"
name=
"skywalking.php"
/>
<file
role=
"src"
name=
"src/agent/.gitignore"
/>
<file
role=
"src"
name=
"src/agent/build.sh"
/>
<file
role=
"src"
name=
"src/agent/cmd/main.go"
/>
<file
role=
"src"
name=
"src/agent/logger/log.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/ApplicationRegisterService.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/CLR.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/DiscoveryService.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/Downstream.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/JVM.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/JVMMetricsService.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/KeyWithIntegerValue.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/KeyWithStringValue.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/NetworkAddressRegisterService.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/TraceSegmentService.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent/trace-common.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent2/CLRMetric.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent2/JVMMetric.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/agent2/trace.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/common/common.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/register2/InstancePing.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/register2/Register.pb.go"
/>
<file
role=
"src"
name=
"src/agent/pb/servicemesh/service-mesh.pb.go"
/>
<file
role=
"src"
name=
"src/agent/service/agent.go"
/>
<file
role=
"src"
name=
"src/agent/service/conn.go"
/>
<file
role=
"src"
name=
"src/agent/service/heartbeat.go"
/>
<file
role=
"src"
name=
"src/agent/service/register.go"
/>
<file
role=
"src"
name=
"src/agent/service/trace.go"
/>
<file
role=
"src"
name=
"src/go.mod"
/>
<file
role=
"src"
name=
"src/go.sum"
/>
<file
role=
"doc"
name=
"src/proto/README.md"
/>
<file
role=
"src"
name=
"src/proto/common/CLR.proto"
/>
<file
role=
"src"
name=
"src/proto/common/JVM.proto"
/>
<file
role=
"src"
name=
"src/proto/common/common.proto"
/>
<file
role=
"src"
name=
"src/proto/common/trace-common.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent-v2/CLRMetric.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent-v2/JVMMetric.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent-v2/trace.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/ApplicationRegisterService.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/DiscoveryService.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/Downstream.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/JVMMetricsService.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/KeyWithIntegerValue.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/KeyWithStringValue.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/NetworkAddressRegisterService.proto"
/>
<file
role=
"src"
name=
"src/proto/language-agent/TraceSegmentService.proto"
/>
<file
role=
"src"
name=
"src/proto/register/InstancePing.proto"
/>
<file
role=
"src"
name=
"src/proto/register/Register.proto"
/>
<file
role=
"src"
name=
"src/proto/service-mesh-probe/istio/skywalking.config.pb.html"
/>
<file
role=
"src"
name=
"src/proto/service-mesh-probe/service-mesh.proto"
/>
<file
role=
"test"
name=
"tests/c.phpt"
/>
<file
role=
"test"
name=
"tests/curl_001.phpt"
/>
<file
role=
"test"
name=
"tests/curl_002.phpt"
/>
<file
role=
"test"
name=
"tests/curl_003.phpt"
/>
<file
role=
"test"
name=
"tests/curl_004.phpt"
/>
<file
role=
"test"
name=
"tests/curl_005.phpt"
/>
<file
role=
"test"
name=
"tests/curl_006.phpt"
/>
<file
role=
"test"
name=
"tests/curl_007.phpt"
/>
<file
role=
"test"
name=
"tests/curl_008.phpt"
/>
<file
role=
"test"
name=
"tests/curl_009.phpt"
/>
<file
role=
"test"
name=
"tests/curl_010.phpt"
/>
<file
role=
"test"
name=
"tests/curl_011.phpt"
/>
<file
role=
"test"
name=
"tests/curl_012.phpt"
/>
<file
role=
"test"
name=
"tests/curl_013.phpt"
/>
<file
role=
"test"
name=
"tests/curl_014.phpt"
/>
<file
role=
"test"
name=
"tests/curl_015.phpt"
/>
<file
role=
"test"
name=
"tests/curl_016.phpt"
/>
<file
role=
"test"
name=
"tests/curl_017.phpt"
/>
<file
role=
"test"
name=
"tests/curl_018.phpt"
/>
<file
role=
"test"
name=
"tests/curl_019.phpt"
/>
<file
role=
"test"
name=
"tests/curl_020.phpt"
/>
<file
role=
"test"
name=
"tests/curl_021.phpt"
/>
<file
role=
"test"
name=
"tests/curl_022.phpt"
/>
<file
role=
"test"
name=
"tests/curl_023.phpt"
/>
<file
role=
"test"
name=
"tests/curl_024.phpt"
/>
<file
role=
"test"
name=
"tests/curl_025.phpt"
/>
<file
role=
"test"
name=
"tests/curl_testdata1.txt"
/>
<file
role=
"test"
name=
"tests/curl_testdata2.txt"
/>
<file
role=
"test"
name=
"tests/d.phpt"
/>
<file
role=
"test"
name=
"tests/explain.txt"
/>
<file
role=
"test"
name=
"tests/server.inc"
/>
<file
role=
"test"
name=
"tests/skywalking.20171027.log"
/>
<file
role=
"src"
name=
"travis/route.sh"
/>
<file
role=
"src"
name=
"travis/simple-compile.sh"
/>
<file
role=
"src"
name=
"who-uses.jpg"
/>
</dir>
</contents>
<dependencies>
<required>
<php>
<min>
7.1.0
</min>
</php>
<pearinstaller>
<min>
1.4.0
</min>
</pearinstaller>
</required>
</dependencies>
<providesextension>
skywalking
</providesextension>
</package>
\ No newline at end of file
pecl-package.php
0 → 100644
浏览文件 @
b88b0fb4
#!/usr/bin/env php
<?php
// check file lists
$version
=
""
;
$root_dir
=
dirname
(
__FILE__
);
$file_list_raw
=
explode
(
PHP_EOL
,
`git ls-files`
);
$header
=
file_get_contents
(
"
$root_dir
/php_skywalking.h"
);
if
(
preg_match
(
"/PHP_SKYWALKING_VERSION
\"
(\d.\d.\d)
\"
/i"
,
$header
,
$matches
))
{
if
(
isset
(
$matches
[
1
]))
{
$version
=
$matches
[
1
];
}
}
if
(
$version
===
""
)
{
exit
(
"❌No version number found"
);
}
echo
"version:
$version
\n
"
;
$file_list
=
[];
foreach
(
$file_list_raw
as
$file
)
{
if
(
empty
(
$file
))
{
continue
;
}
if
(
is_dir
(
"
{
$root_dir
}
/
{
$file
}
"
))
{
continue
;
}
if
(
$file
===
'package.xml'
||
substr
(
$file
,
0
,
1
)
===
'.'
||
$file
===
'package-template.xml'
)
{
continue
;
}
if
(
strpos
(
$file
,
'tests'
)
===
0
)
{
$role
=
'test'
;
}
elseif
(
strpos
(
$file
,
'examples'
)
===
0
)
{
$role
=
'doc'
;
}
else
{
$ext
=
pathinfo
(
$file
,
PATHINFO_EXTENSION
);
$role
=
'src'
;
switch
(
$ext
)
{
case
'phpt'
:
$role
=
'test'
;
break
;
case
'md'
:
$role
=
'doc'
;
break
;
case
''
:
static
$spacial_source_list
=
[
'Makefile'
=>
true
];
if
(
$spacial_source_list
[
pathinfo
(
$file
,
PATHINFO_BASENAME
)]
??
false
)
{
break
;
}
if
(
substr
(
file_get_contents
(
"
{
$root_dir
}
/
{
$file
}
"
),
0
,
2
)
!==
'#!'
)
{
$role
=
'doc'
;
}
break
;
}
}
$file_list
[]
=
"<file role=
\"
{
$role
}
\"
name=
\"
{
$file
}
\"
/>
\n
"
;
}
$template
=
file_get_contents
(
__DIR__
.
'/package-template.xml'
);
$template
=
str_replace
(
"
{
{file_list}
}
"
,
implode
(
" "
,
$file_list
),
$template
);
$template
=
str_replace
(
"
{
{version}
}
"
,
$version
,
$template
);
$template
=
str_replace
(
"
{
{date}
}
"
,
date
(
"Y-m-d"
),
$template
);
file_put_contents
(
"package.xml"
,
$template
);
php_skywalking.h
浏览文件 @
b88b0fb4
...
...
@@ -24,7 +24,7 @@
extern
zend_module_entry
skywalking_module_entry
;
#define phpext_skywalking_ptr &skywalking_module_entry
#define PHP_SKYWALKING_VERSION "3.
1.7
"
/* Replace with version number for your extension */
#define PHP_SKYWALKING_VERSION "3.
2.4
"
/* Replace with version number for your extension */
#ifdef PHP_WIN32
# define PHP_SKYWALKING_API __declspec(dllexport)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录