Repository: pinpoint-apm/pinpoint-c-agent (language: python)

Issue:
0.4.6 php module make test fail
# Expected Behavior

> make test TESTS=src/PHP/tests5/
> All test pass


# Current Behavior

> FAIL Check  call statck [src/PHP/tests5/trace_api_context_tcp.phpt] 
> FAIL Check tracelimit [src/PHP/tests5/trace_limit_test-i448.phpt] 


# Failure Information (for bugs)


## Steps to Reproduce



# Expected Behavior

> make test TESTS=src/PHP/tests5/
> All test pass


# Current Behavior

> FAIL Check  call statck [src/PHP/tests5/trace_api_context_tcp.phpt] 
> FAIL Check tracelimit [src/PHP/tests5/trace_limit_test-i448.phpt] 


# Failure Information (for bugs)

make test fail

## Steps to Reproduce


1. install php:yum -y install php-devel (os:centos 7)
2. install cmake:wget https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && tar -xzvf cmake-3.13.2.tar.gz && cd cmake-3.13.2 && ./bootstrap && gmake -j8 install
3. build common lib like https://github.com/pinpoint-apm/pinpoint-c-agent/tree/master/DOC/common
4. build module like https://github.com/pinpoint-apm/pinpoint-c-agent/tree/master/DOC/PHP
5.  make test TESTS=src/PHP/tests5/

## Context

* Operating System: centos 7 3.10.0-693.11.6.el7.x86_64

* PHP Version:5.4.16

* php.ini:

* php-fpm or apache:

* pinpoint_agent.conf:only change collector ip

## Failure Logs


> FAIL Check  call statck [src/PHP/tests5/trace_api_context_tcp.phpt] 
> FAIL Check tracelimit [src/PHP/tests5/trace_limit_test-i448.phpt] 


1. install php:yum -y install php-devel (os:centos 7)
2. install cmake:wget https://cmake.org/files/v3.13/cmake-3.13.2.tar.gz && tar -xzvf cmake-3.13.2.tar.gz && cd cmake-3.13.2 && ./bootstrap && gmake -j8 install
3. build common lib like https://github.com/pinpoint-apm/pinpoint-c-agent/tree/master/DOC/common
4. build module like https://github.com/pinpoint-apm/pinpoint-c-agent/tree/master/DOC/PHP
5.  make test TESTS=src/PHP/tests5/

## Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

* Operating System: centos 7 kernel:3.10.0-693.11.6.el7.x86_64

* PHP Version:5.4.16

* php.ini:

* php-fpm or apache:

* pinpoint_agent.conf:only change collector ip

## Failure Logs
```
=====================================================================
PHP         : /usr/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 5.4.16
ZEND_VERSION: 2.4.0
PHP_OS      : Linux - Linux test 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64
INI actual  : /root/pinpoint-c-agent-0.4.6/tmp-php.ini
More .INIs  :  
CWD         : /root/pinpoint-c-agent-0.4.6
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
Running selected tests.

=================
TEST /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_api_context_tcp.phpt
TEST 1/1 [src/PHP/tests5/trace_api_context_tcp.phpt]
========SKIP========
<?php if (!extension_loaded("pinpoint_php")) print "skip"; ?>
========DONE========

========TEST========
<?php 


pinpoint_start_trace();

pinpoint_set_context('a','a');
var_dump(pinpoint_get_context('a'));
pinpoint_set_context('b','b');
var_dump(pinpoint_get_context('b'));

pinpoint_set_context('c','c');
var_dump(pinpoint_get_context('c'));

var_dump(pinpoint_get_context('not exsit'));

pinpoint_end_trace();

$id = pinpoint_start_trace(0);
$id = pinpoint_start_trace($id);
pinpoint_set_context('a','a',$id);
pinpoint_set_context('b','b',$id);
pinpoint_set_context('c','c',$id);

var_dump(pinpoint_get_context('c',$id));
var_dump(pinpoint_get_context('b',$id));
var_dump(pinpoint_get_context('a',$id));
var_dump(pinpoint_get_context('not exsit',$id));

$id = pinpoint_end_trace($id);
pinpoint_end_trace($id);

?>
========DONE========

CONTENT_LENGTH  = 
CONTENT_TYPE    = 
PATH_TRANSLATED = /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_api_context_tcp.php
QUERY_STRING    = 
REDIRECT_STATUS = 1
REQUEST_METHOD  = GET
SCRIPT_FILENAME = /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_api_context_tcp.php
HTTP_COOKIE     = 
COMMAND /usr/bin/php  -n -c '/root/pinpoint-c-agent-0.4.6/tmp-php.ini'  -d "output_handler=" -d "open_basedir=" -d "safe_mode=0" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=1" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "magic_quotes_runtime=0" -d "ignore_repeated_errors=0" -d "precision=14" -d "memory_limit=128M" -d "extension_dir=/root/pinpoint-c-agent-0.4.6/modules/" -d "extension=pinpoint_php.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "pinpoint_php.CollectorHost=tcp:127.0.0.1:9999" -d "pinpoint_php.SendSpanTimeOutMs=200" -d "pinpoint_php.UnitTest=true" -d "pinpoint_php._limit=yes" -d "pinpoint_php.DebugReport=true" -f "/root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_api_context_tcp.php"  2>&1

========OUT========
[pinpoint] [3426] [3426]#0 pinpoint_start start
string(1) "a"
string(1) "b"
string(1) "c"
[pinpoint] [3426] [3426] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [3426] [3426]this span:({"E":1,"FT":1500,"S":1631624361322})
[pinpoint] [3426] [3426]agent try to connect:(tcp:127.0.0.1:9999)
[pinpoint] [3426] [3426]#128 pinpoint_end_trace Done!
[pinpoint] [3426] [3426]#0 pinpoint_start start
[pinpoint] [3426] [3426]#128 pinpoint_start start
string(1) "c"
string(1) "b"
string(1) "a"
[pinpoint] [3426] [3426] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [3426] [3426]#127 pinpoint_end_trace Done!
[pinpoint] [3426] [3426]this span:({"E":0,"FT":1500,"S":1631624361323,"calls":[{"E":0,"S":0}]})
[pinpoint] [3426] [3426]#128 pinpoint_end_trace Done!
========DONE========

========EXP========
[pinpoint] [%d] [%d]#0 pinpoint_start start
string(1) "a"
string(1) "b"
string(1) "c"
[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d})
[pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
[pinpoint] [%d] [%d]_do_write_data@215 send data error:(Connection refused) fd:(%d)
[pinpoint] [%d] [%d]reset peer:%d
[pinpoint] [%d] [%d]#128 pinpoint_end_trace Done!
[pinpoint] [%d] [%d]#0 pinpoint_start start
[pinpoint] [%d] [%d]#128 pinpoint_start start
string(1) "c"
string(1) "b"
string(1) "a"
[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
[pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d,"calls":[{"E":%d,"S":%d}]})
[pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
[pinpoint] [%d] [%d]#128 pinpoint_end_trace Done!
========DONE========

========DIFF========
009- [pinpoint] [%d] [%d]_do_write_data@215 send data error:(Connection refused) fd:(%d)
010- [pinpoint] [%d] [%d]reset peer:%d
021- [pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
========DONE========
FAIL Check  call statck [src/PHP/tests5/trace_api_context_tcp.phpt] 
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================


=====================================================================
PHP         : /usr/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 5.4.16
ZEND_VERSION: 2.4.0
PHP_OS      : Linux - Linux test 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64
INI actual  : /root/pinpoint-c-agent-0.4.6/tmp-php.ini
More .INIs  :  
CWD         : /root/pinpoint-c-agent-0.4.6
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
Running selected tests.

=================
TEST /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_limit_test-i448.phpt
TEST 1/1 [src/PHP/tests5/trace_limit_test-i448.phpt]
========SKIP========
<?php if (!extension_loaded("pinpoint_php")) print "skip"; ?>
========DONE========

========TEST========
<?php

$id = pinpoint_start_trace(0);
$id = pinpoint_start_trace($id);
pinpoint_set_context('a','a',$id);
pinpoint_set_context('b','b',$id);
pinpoint_set_context('c','c',$id);

var_dump(pinpoint_get_context('c',$id));
var_dump(pinpoint_get_context('b',$id));
var_dump(pinpoint_get_context('a',$id));
var_dump(pinpoint_get_context('not exsit',$id));

$id = pinpoint_end_trace($id);

if(pinpoint_tracelimit())
{
   pinpoint_drop_trace($id);
}

pinpoint_end_trace($id);
========DONE========

CONTENT_LENGTH  = 
CONTENT_TYPE    = 
PATH_TRANSLATED = /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_limit_test-i448.php
QUERY_STRING    = 
REDIRECT_STATUS = 1
REQUEST_METHOD  = GET
SCRIPT_FILENAME = /root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_limit_test-i448.php
HTTP_COOKIE     = 
COMMAND /usr/bin/php  -n -c '/root/pinpoint-c-agent-0.4.6/tmp-php.ini'  -d "output_handler=" -d "open_basedir=" -d "safe_mode=0" -d "disable_functions=" -d "output_buffering=Off" -d "error_reporting=32767" -d "display_errors=1" -d "display_startup_errors=1" -d "log_errors=0" -d "html_errors=0" -d "track_errors=1" -d "report_memleaks=1" -d "report_zend_debug=0" -d "docref_root=" -d "docref_ext=.html" -d "error_prepend_string=" -d "error_append_string=" -d "auto_prepend_file=" -d "auto_append_file=" -d "magic_quotes_runtime=0" -d "ignore_repeated_errors=0" -d "precision=14" -d "memory_limit=128M" -d "extension_dir=/root/pinpoint-c-agent-0.4.6/modules/" -d "extension=pinpoint_php.so" -d "session.auto_start=0" -d "zlib.output_compression=Off" -d "pinpoint_php.CollectorHost=unix:/unexist_file.sock" -d "pinpoint_php.SendSpanTimeOutMs=200" -d "pinpoint_php.UnitTest=true" -d "pinpoint_php.TraceLimit=0" -d "pinpoint_php._limit=yes" -d "pinpoint_php.DebugReport=true" -f "/root/pinpoint-c-agent-0.4.6/src/PHP/tests5/trace_limit_test-i448.php"  2>&1

========OUT========
[pinpoint] [4162] [4162]#0 pinpoint_start start
[pinpoint] [4162] [4162]#128 pinpoint_start start
string(1) "c"
string(1) "b"
string(1) "a"
[pinpoint] [4162] [4162] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [4162] [4162]#127 pinpoint_end_trace Done!
[pinpoint] [4162] [4162]This span dropped. max_trace_limit:0 current_tick:2 onLine:1
[pinpoint] [4162] [4162]change current#128 status, before:2,now:4
[pinpoint] [4162] [4162]current#128 span dropped,due to TRACE_BLOCK
[pinpoint] [4162] [4162]#128 pinpoint_end_trace Done!
========DONE========

========EXP========
[pinpoint] [%d] [%d]#0 pinpoint_start start
[pinpoint] [%d] [%d]#128 pinpoint_start start
string(1) "c"
string(1) "b"
string(1) "a"
[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
bool(false)
[pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
[pinpoint] [%d] [%d]This span dropped. max_trace_limit:0 current_tick:0 onLine:1
[pinpoint] [%d] [%d]change current#128 status, before:2,now:4
[pinpoint] [%d] [%d]current#128 span dropped,due to TRACE_BLOCK
[pinpoint] [%d] [%d]#128 pinpoint_end_trace Done!
========DONE========

========DIFF========
009+ [pinpoint] [4162] [4162]This span dropped. max_trace_limit:0 current_tick:2 onLine:1
009- [pinpoint] [%d] [%d]This span dropped. max_trace_limit:0 current_tick:0 onLine:1
========DONE========
FAIL Check tracelimit [src/PHP/tests5/trace_limit_test-i448.phpt] 
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check tracelimit [src/PHP/tests5/trace_limit_test-i448.phpt]
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check  call statck [src/PHP/tests5/trace_api_context_tcp.phpt]
=====================================================================
```


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 14c5dac26..8ef773abc 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -27,11 +27,14 @@ jobs:
        
   PHP5:
     runs-on: ubuntu-18.04
+    strategy:
+      matrix:
+        php-versions: ['5.6','5.4','5.5']
     steps:
       - uses: actions/checkout@v2
       - uses: shivammathur/setup-php@v2
         with:
-          php-version: '5.6'
+          php-version: ${{ matrix.php-versions }}
       - run: |
           phpize
           ./configure


Test patch:
diff --git a/src/PHP/tests/trace_api_context.phpt b/src/PHP/tests/trace_api_context.phpt
index d826d2efc..f62a61202 100644
--- a/src/PHP/tests/trace_api_context.phpt
+++ b/src/PHP/tests/trace_api_context.phpt
@@ -23,7 +23,7 @@ var_dump(pinpoint_get_context('b'));
 pinpoint_set_context('c','c');
 var_dump(pinpoint_get_context('c'));
 
-var_dump(pinpoint_get_context('not exsit'));
+var_dump(pinpoint_get_context('not exist'));
 
 pinpoint_end_trace();
 
@@ -36,7 +36,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 pinpoint_end_trace($id);
@@ -47,7 +47,7 @@ pinpoint_end_trace($id);
 string(1) "a"
 string(1) "b"
 string(1) "c"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d})
 [pinpoint] [%d] [%d]agent try to connect:(unix:/unexist_file.sock)
@@ -58,7 +58,7 @@ bool(false)
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d,"calls":[{"E":%d,"S":%d}]})
diff --git a/src/PHP/tests/trace_api_context_tcp.phpt b/src/PHP/tests/trace_api_context_tcp.phpt
index d293710b3..f338c8ffe 100644
--- a/src/PHP/tests/trace_api_context_tcp.phpt
+++ b/src/PHP/tests/trace_api_context_tcp.phpt
@@ -23,7 +23,7 @@ var_dump(pinpoint_get_context('b'));
 pinpoint_set_context('c','c');
 var_dump(pinpoint_get_context('c'));
 
-var_dump(pinpoint_get_context('not exsit'));
+var_dump(pinpoint_get_context('not exist'));
 
 pinpoint_end_trace();
 
@@ -36,7 +36,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 pinpoint_end_trace($id);
@@ -47,7 +47,7 @@ pinpoint_end_trace($id);
 string(1) "a"
 string(1) "b"
 string(1) "c"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d})
 [pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
@@ -59,7 +59,7 @@ bool(false)
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d,"calls":[{"E":%d,"S":%d}]})
diff --git a/src/PHP/tests/trace_limit_test-i448.phpt b/src/PHP/tests/trace_limit_test-i448.phpt
index 6e1060cef..7bf8ed48d 100644
--- a/src/PHP/tests/trace_limit_test-i448.phpt
+++ b/src/PHP/tests/trace_limit_test-i448.phpt
@@ -22,7 +22,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 
@@ -39,7 +39,7 @@ pinpoint_end_trace($id);
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]This span dropped. max_trace_limit:0 current_tick:0 onLine:1
diff --git a/src/PHP/tests5/trace_api_context.phpt b/src/PHP/tests5/trace_api_context.phpt
index d826d2efc..f62a61202 100644
--- a/src/PHP/tests5/trace_api_context.phpt
+++ b/src/PHP/tests5/trace_api_context.phpt
@@ -23,7 +23,7 @@ var_dump(pinpoint_get_context('b'));
 pinpoint_set_context('c','c');
 var_dump(pinpoint_get_context('c'));
 
-var_dump(pinpoint_get_context('not exsit'));
+var_dump(pinpoint_get_context('not exist'));
 
 pinpoint_end_trace();
 
@@ -36,7 +36,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 pinpoint_end_trace($id);
@@ -47,7 +47,7 @@ pinpoint_end_trace($id);
 string(1) "a"
 string(1) "b"
 string(1) "c"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d})
 [pinpoint] [%d] [%d]agent try to connect:(unix:/unexist_file.sock)
@@ -58,7 +58,7 @@ bool(false)
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d,"calls":[{"E":%d,"S":%d}]})
diff --git a/src/PHP/tests5/trace_api_context_tcp.phpt b/src/PHP/tests5/trace_api_context_tcp.phpt
index d293710b3..f62a61202 100644
--- a/src/PHP/tests5/trace_api_context_tcp.phpt
+++ b/src/PHP/tests5/trace_api_context_tcp.phpt
@@ -3,7 +3,7 @@ Check  call statck
 --SKIPIF--
 <?php if (!extension_loaded("pinpoint_php")) print "skip"; ?>
 --INI--
-pinpoint_php.CollectorHost=tcp:127.0.0.1:9999
+pinpoint_php.CollectorHost=unix:/unexist_file.sock
 pinpoint_php.SendSpanTimeOutMs=200
 pinpoint_php.UnitTest=true
 ;pinpoint_php._limit for internal use. User do not use it
@@ -23,7 +23,7 @@ var_dump(pinpoint_get_context('b'));
 pinpoint_set_context('c','c');
 var_dump(pinpoint_get_context('c'));
 
-var_dump(pinpoint_get_context('not exsit'));
+var_dump(pinpoint_get_context('not exist'));
 
 pinpoint_end_trace();
 
@@ -36,7 +36,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 pinpoint_end_trace($id);
@@ -47,21 +47,20 @@ pinpoint_end_trace($id);
 string(1) "a"
 string(1) "b"
 string(1) "c"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#128 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d})
-[pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
-[pinpoint] [%d] [%d]_do_write_data@215 send data error:(Connection refused) fd:(%d)
-[pinpoint] [%d] [%d]reset peer:%d
+[pinpoint] [%d] [%d]agent try to connect:(unix:/unexist_file.sock)
+[pinpoint] [%d] [%d]connect:(/unexist_file.sock) failed as (No such file or directory)
 [pinpoint] [%d] [%d]#128 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]#0 pinpoint_start start
 [pinpoint] [%d] [%d]#128 pinpoint_start start
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]this span:({"E":%d,"FT":1500,"S":%d,"calls":[{"E":%d,"S":%d}]})
-[pinpoint] [%d] [%d]agent try to connect:(tcp:127.0.0.1:9999)
+[pinpoint] [%d] [%d]agent try to connect:(unix:/unexist_file.sock)
 [pinpoint] [%d] [%d]#128 pinpoint_end_trace Done!
\ No newline at end of file
diff --git a/src/PHP/tests5/trace_limit_test-i448.phpt b/src/PHP/tests5/trace_limit_test-i448.phpt
index 6e1060cef..7bf8ed48d 100644
--- a/src/PHP/tests5/trace_limit_test-i448.phpt
+++ b/src/PHP/tests5/trace_limit_test-i448.phpt
@@ -22,7 +22,7 @@ pinpoint_set_context('c','c',$id);
 var_dump(pinpoint_get_context('c',$id));
 var_dump(pinpoint_get_context('b',$id));
 var_dump(pinpoint_get_context('a',$id));
-var_dump(pinpoint_get_context('not exsit',$id));
+var_dump(pinpoint_get_context('not exist',$id));
 
 $id = pinpoint_end_trace($id);
 
@@ -39,7 +39,7 @@ pinpoint_end_trace($id);
 string(1) "c"
 string(1) "b"
 string(1) "a"
-[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exsit
+[pinpoint] [%d] [%d] pinpoint_get_context_key#127 failed with map::at, parameters:not exist
 bool(false)
 [pinpoint] [%d] [%d]#127 pinpoint_end_trace Done!
 [pinpoint] [%d] [%d]This span dropped. max_trace_limit:0 current_tick:0 onLine:1