This commit is contained in:
2021-03-24 19:33:09 +08:00
parent e286605dcf
commit becda718bd
+1 -1
View File
@@ -671,8 +671,8 @@ if (!function_exists('swoole_serialize')) {
*/
function swoole_serialize($data): string
{
var_dump(class_exists('swoole_serialize'), \swoole_serialize::pack($data));
if (class_exists('swoole_serialize')) {
var_dump(\swoole_serialize::pack($data));
return \swoole_serialize::pack($data);
} else {
return serialize($data);