This commit is contained in:
2023-10-08 23:43:01 +08:00
parent 7f129b2107
commit 837f597342
+26 -2
View File
@@ -71,7 +71,6 @@ if (!function_exists('instance')) {
if (!function_exists('call')) { if (!function_exists('call')) {
/** /**
* @param $handler * @param $handler
* @param mixed ...$params * @param mixed ...$params
@@ -250,6 +249,32 @@ if (!function_exists('isUrl')) {
} }
if (!function_exists('msgpack_pack')) {
/**
* @param $content
* @return string
*/
function msgpack_pack($content): string
{
return serialize($content);
}
}
if (!function_exists('msgpack_unpack')) {
/**
* @param $content
* @return mixed
*/
function msgpack_unpack($content): mixed
{
return unserialize($content);
}
}
if (!function_exists('request')) { if (!function_exists('request')) {
@@ -307,7 +332,6 @@ if (!function_exists('split_request_uri')) {
} }
if (!function_exists('redis')) { if (!function_exists('redis')) {