Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #185 from SkyAPM/develop
Browse files Browse the repository at this point in the history
3.2.6
  • Loading branch information
heyanlong authored Feb 13, 2020
2 parents df2b059 + 356d301 commit ebf093c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agent/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
app := cli.NewApp()
app.Name = "sky_php_agent"
app.Usage = "the skywalking trace sending agent"
app.Version = "3.2.5"
app.Version = "3.2.6"
app.Flags = []cli.Flag{
&cli.StringSliceFlag{Name: "grpc", Usage: "SkyWalking collector grpc address", Value: cli.NewStringSlice("127.0.0.1:11800")},
&cli.StringFlag{Name: "socket", Usage: "Pipeline for communicating with PHP", Value: "/var/run/sky-agent.sock"},
Expand Down
15 changes: 14 additions & 1 deletion package-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</stability>
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache2.0</license>
<notes>
Fix the empty field bug in span refs for skywalking v6.
Fix the mistake of field entryOperationName in sw6 header.
</notes>
<contents>
<dir name="/">
Expand All @@ -46,6 +46,19 @@
<providesextension>skywalking</providesextension>
<extsrcrelease />
<changelog>
<release>
<version>
<release>3.2.6</release>
<api>3.2.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<notes>
Fix the mistake of field entryOperationName in sw6 header.
</notes>
</release>
<release>
<version>
<release>3.2.5</release>
Expand Down
21 changes: 17 additions & 4 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2020-02-11</date>
<date>2020-02-13</date>
<version>
<release>3.2.5</release>
<api>3.2.5</api>
<release>3.2.6</release>
<api>3.2.6</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>
Fix the empty field bug in span refs for skywalking v6.
Fix the mistake of field entryOperationName in sw6 header.
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -158,6 +158,19 @@
<providesextension>skywalking</providesextension>
<extsrcrelease />
<changelog>
<release>
<version>
<release>3.2.6</release>
<api>3.2.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<notes>
Fix the mistake of field entryOperationName in sw6 header.
</notes>
</release>
<release>
<version>
<release>3.2.5</release>
Expand Down
3 changes: 2 additions & 1 deletion php_skywalking.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
extern zend_module_entry skywalking_module_entry;
#define phpext_skywalking_ptr &skywalking_module_entry

#define PHP_SKYWALKING_VERSION "3.2.5" /* Replace with version number for your extension */
#define SKY_DEBUG 0
#define PHP_SKYWALKING_VERSION "3.2.6" /* Replace with version number for your extension */

#ifdef PHP_WIN32
# define PHP_SKYWALKING_API __declspec(dllexport)
Expand Down
12 changes: 11 additions & 1 deletion skywalking.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,17 @@ ZEND_DECLARE_MODULE_GLOBALS(skywalking)

/* True global resources - no need for thread safety here */
static int le_skywalking;
#if SKY_DEBUG
static int application_instance = 1;
static int application_id = 1;
static int cli_debug = 1;
#else
static int application_instance = 0;
static int application_id = 0;
static int cli_debug = 0;
#endif
static char application_uuid[37] = {0};
static int sky_increment_id = 0;
static int cli_debug = 0;

static void (*ori_execute_ex)(zend_execute_data *execute_data);
static void (*ori_execute_internal)(zend_execute_data *execute_data, zval *return_value);
Expand All @@ -83,7 +89,11 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
*/
/* Remove comments and fill if you need to have entries in php.ini*/
PHP_INI_BEGIN()
#if SKY_DEBUG
STD_PHP_INI_BOOLEAN("skywalking.enable", "1", PHP_INI_ALL, OnUpdateBool, enable, zend_skywalking_globals, skywalking_globals)
#else
STD_PHP_INI_BOOLEAN("skywalking.enable", "0", PHP_INI_ALL, OnUpdateBool, enable, zend_skywalking_globals, skywalking_globals)
#endif
STD_PHP_INI_ENTRY("skywalking.version", "6", PHP_INI_ALL, OnUpdateLong, version, zend_skywalking_globals, skywalking_globals)
STD_PHP_INI_ENTRY("skywalking.app_code", "hello_skywalking", PHP_INI_ALL, OnUpdateString, app_code, zend_skywalking_globals, skywalking_globals)
STD_PHP_INI_ENTRY("skywalking.sock_path", "/var/run/sky-agent.sock", PHP_INI_ALL, OnUpdateString, sock_path, zend_skywalking_globals, skywalking_globals)
Expand Down

0 comments on commit ebf093c

Please sign in to comment.