Skip to content

Commit

Permalink
add micro sapi (#5340)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman authored May 27, 2024
1 parent 7448742 commit 6e28805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext-src/php_swoole.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static void php_swoole_init_globals(zend_swoole_globals *swoole_globals) {
swoole_globals->use_shortname = 1;
swoole_globals->in_autoload = nullptr;
if (strcmp("cli", sapi_module.name) == 0 || strcmp("phpdbg", sapi_module.name) == 0 ||
strcmp("embed", sapi_module.name) == 0) {
strcmp("embed", sapi_module.name) == 0 || strcmp("micro", sapi_module.name) == 0) {
swoole_globals->cli = 1;
}
}
Expand Down

0 comments on commit 6e28805

Please sign in to comment.