docs's People
Forkers
yurunsoft ajunlonglive gxlct008 zhaoyun168 ningxiaofa nathanfreeman yellowgray tianwenlike xuesilf howeysun alviszhang windqyoung ppxz2014 nanjixiong greezen yuskamal forthxu caijuntao1 flyingkirito liubiao2018 zrshishir liuxizhuang zingjie kiddolin dcy12345 veapon chengluck xuanyanwow real-qgl pomelchenko buexplain tinywan randolphjiffy graytele laraveladmin-cn rongerwhiter 2kgeekc yymax80253 kunjun jingjingxykdocs's Issues
建议新增: 并发编程 专题
请问,我测试线程的map报错
<?php
use Swoole\Thread;
/** 使用map传递数据 */
use Swoole\Thread\Map;
$args = Thread::getArguments();
if (empty($args)) {
$map = new Map;
$thread = new Thread(__FILE__, 2, $map);
sleep(1);
$class = new stdClass();
$class->name = "张三556565";
$map['test'] = $class;
$map->add('demo','lucy');
$thread->join();
} else {
$map = $args[1];
sleep(2);
var_dump($map['test']);
var_dump($map['demo']);
var_dump($map->keys());
var_dump($map->count());
var_dump($map->values());
var_dump($map->toArray());
}
报错:Fatal error: Uncaught Error: Call to undefined method Swoole\Thread\Map::values() in /var/www/swoole/map.php:23
Stack trace:
#0 {main}
thrown in /var/www/swoole/map.php on line 23
链接已失效
README.md中swoole类图的链接不能用,多语言跳转不行
进程/线程结构图 404
zh-ch/server/init.md 的 process_structure_2 没有跟其它图一样用 cdn,导致第二张进程/线程结构图 404
文档里[email protected]:swoole/sdebug.git已经没有了
建议新增: 线程、进程、协程同步 专题
swoole 线程、进程、协程同步 专题
意义: 以线程、进程同步的视角,把例子索引放在一起,方便选用
状态: 完善中
临时解决 站点不可用 fonts.loli.net
因为 fonts.loli.net 地址不可用,出现 https://www.swoole.com/ 打不开的情况
解决办法:使用浏览器地址重定向即可,地址重定向规则如下:
{
"action": {
"redirect": {
"transform": {
"host": "fonts.googleapis.cn",
"scheme": "https"
}
},
"type": "redirect"
},
"condition": {
"requestDomains": [
"fonts.loli.net"
],
"resourceTypes": [
"main_frame",
"sub_frame",
"stylesheet",
"script",
"image",
"font",
"object",
"xmlhttprequest",
"ping",
"csp_report",
"media",
"websocket",
"other"
],
"urlFilter": "|http*://fonts.loli.net"
},
"id": 2,
"priority": 2
}
补充:本地 预览文档 的方法
预览文档 补充说明:
预览文档,只需要进入
public
目录 运行web 服务即可
浏览器打开
http://0.0.0.0:9503
即可预览文档
cd docs/public/
php -S 0.0.0.0:9503 -t .
# or
docker run --rm --name swoole-docs -v $(pwd)/public/:/usr/share/nginx/html/ -p 9503:80 nginx:1.25-alpine
# or
python3 -m http.serve 9503 -d .
浏览器打开: http://0.0.0.0:9503
即可预览
实时预览 修改后的文档
文档工具使用的是 Docsify docsifyjs-cli
npm i docsify-cli -g
# or
npm i docsify-cli -g --registry=https://registry.npmmirror.com
cd docs/public
docsify start .
浏览器打开: http://0.0.0.0:4000
即可预览
Request for English Version of Official Documentation
Dear Swoole team,
I would like to request an English version of the official documentation. Currently, the documentation is not available in English, and it would be immensely helpful for non-Chinese-speaking users like me.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.