首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
共享内存这里的例子想表达什么
https://wiki.swoole.com/#/memory/table ```php //bad $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); //result: Bus error //good $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->column('pad',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); /* result array(2) { ["data"]=> string(0) "" ["pad"]=> string(0) "" } */ ``` 为啥多了一列就是 good?
发布于6年前 · 2 次浏览 · 来自
提问
Pear
https://wiki.swoole.com/#/memory/table ```php //bad $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); //result: Bus error //good $table = new \Swoole\Table(8); $table->column('data',Table::TYPE_STRING, 1); $table->column('pad',Table::TYPE_STRING, 1); $table->create(); $table->set(1,[]); var_dump($table->get(1)); /* result array(2) { ["data"]=> string(0) "" ["pad"]=> string(0) "" } */ ``` 为啥多了一列就是 good?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-03-15
郭新华
这文档有误,老版本swoole有这个bus error问题,新的没有了,我们改下文档
赞
1
回复