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

Commit

Permalink
Fix #496
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanlong committed Jul 7, 2022
1 parent 94ef612 commit edd699c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sky_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void sky_core_request_init(zval *request, u_int64_t request_id) {
char *peer = NULL;

if (request != NULL) {

// todo
} else { // fpm or cli mode
zend_bool jit = PG(auto_globals_jit);
if (jit) {
Expand All @@ -116,10 +116,10 @@ void sky_core_request_init(zval *request, u_int64_t request_id) {

// name
if (strcasecmp("cli", sapi_module.name) == 0) {
operation_name = "cli";
asprintf(&operation_name, "%s", "cli");
} else {
zval *request_uri = zend_hash_str_find(Z_ARRVAL_P(_server), ZEND_STRL("REQUEST_URI"));
operation_name = Z_STRVAL_P(request_uri);
asprintf(&operation_name, "%s", Z_STRVAL_P(request_uri));
}

// peer
Expand Down

0 comments on commit edd699c

Please # to comment.