Workerman\Redis\Client使用eval運(yùn)行l(wèi)ua腳本無法返回二維數(shù)組,
$script = <<<'PHP_EOT'
return {{1,2,3},{3,2,1}}
PHP_EOT;
Events::getRedisIns()->eval($script,[],0,function ($res){
print_r($res);
});
return {1,2,3}是可以的,return {{1,2,3},{3,2,1}}就不行了,不知道是不是個(gè)bug