-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate admin api from ext-swoole_plus to swoole-src (#4441)
* Migration admin api from ext-swoole_plus to swoole-src * Optimize code
- Loading branch information
Showing
45 changed files
with
23,377 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* @generate-legacy-arginfo | ||
* @generate-function-entries | ||
*/ | ||
function swoole_get_objects() : array|bool { | ||
|
||
} | ||
|
||
function swoole_get_vm_status() : array|bool { | ||
|
||
} | ||
|
||
function swoole_get_object_by_handle(int $handle): object|bool { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: 7d05091fc87828ebabc77c6c797984366e7afd4a */ | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_swoole_get_objects, 0, 0, MAY_BE_ARRAY|MAY_BE_BOOL) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_swoole_get_vm_status arginfo_swoole_get_objects | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_swoole_get_object_by_handle, 0, 1, MAY_BE_OBJECT|MAY_BE_BOOL) | ||
ZEND_ARG_TYPE_INFO(0, handle, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
|
||
ZEND_FUNCTION(swoole_get_objects); | ||
ZEND_FUNCTION(swoole_get_vm_status); | ||
ZEND_FUNCTION(swoole_get_object_by_handle); | ||
|
||
|
||
static const zend_function_entry ext_functions[] = { | ||
ZEND_FE(swoole_get_objects, arginfo_swoole_get_objects) | ||
ZEND_FE(swoole_get_vm_status, arginfo_swoole_get_vm_status) | ||
ZEND_FE(swoole_get_object_by_handle, arginfo_swoole_get_object_by_handle) | ||
ZEND_FE_END | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: 7d05091fc87828ebabc77c6c797984366e7afd4a */ | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_swoole_get_objects, 0, 0, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_swoole_get_vm_status arginfo_swoole_get_objects | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_swoole_get_object_by_handle, 0, 0, 1) | ||
ZEND_ARG_INFO(0, handle) | ||
ZEND_END_ARG_INFO() | ||
|
||
|
||
ZEND_FUNCTION(swoole_get_objects); | ||
ZEND_FUNCTION(swoole_get_vm_status); | ||
ZEND_FUNCTION(swoole_get_object_by_handle); | ||
|
||
|
||
static const zend_function_entry ext_functions[] = { | ||
ZEND_FE(swoole_get_objects, arginfo_swoole_get_objects) | ||
ZEND_FE(swoole_get_vm_status, arginfo_swoole_get_vm_status) | ||
ZEND_FE(swoole_get_object_by_handle, arginfo_swoole_get_object_by_handle) | ||
ZEND_FE_END | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
BEGIN_EXTERN_C() | ||
#if PHP_VERSION_ID < 80000 | ||
#include "php_swoole_legacy_arginfo.h" | ||
#else | ||
#include "php_swoole_arginfo.h" | ||
#endif | ||
END_EXTERN_C() |
Oops, something went wrong.