swoole-cli icon indicating copy to clipboard operation
swoole-cli copied to clipboard

SWOOLE-CLI is a php binary distribution composed swoole & php-core & cli & fpm and mostly of common extensions.

Results 51 swoole-cli issues
Sort by recently updated
recently updated
newest added

# 用main 分支构建步骤 ```bash # 准备PHP 运行时 (看提示,把 PHP 运行时导入环境变量PATH ) sh setup-php-runtime.sh # 准备运行脚本(目的是为了生成构建容器的脚本,进入容器的脚本)【容器外】 composer update php prepare.php --without-docker --skip-download=1 # 查看用的构建命令 bash make.sh -h # 构建容器运行环境 bash make.sh...

build environment : > debian 12 > clang ![image](https://github.com/swoole/swoole-cli/assets/6836228/943a5131-9a9e-44a8-8ba9-6d544485f8ee) ```text swoole_http_response.lo -MMD -MF ext/swoole/ext-src/swoole_http_response.dep -MT ext/swoole/ext-src/swoole_http_response.lo /work/ext/swoole/ext-src/swoole_http_response.cc:1002:9: error: use of undeclared identifier 'strlcat'; did you mean 'strncat'? strlcat(cookie, "; Max-Age=0",...

```shell curl -Lo setup-php-runtime.sh https://github.com/swoole/swoole-cli/blob/build_native_php/setup-php-runtime.sh?raw=true sh setup-php-runtime.sh --mirror china ``` 使用镜像 ```shell wget https://swoole-cli.jingjingxyk.com/setup-php-runtime.sh sh setup-php-runtime.sh --mirror china ```

1.Server::format方法将数组中的NULL和FlASE都转成了空字符串"$0",但是RESP规范要求的是nil"$-1"; 2.不支持多维数组的转换,抛出异常"Array to string conversion in ...",貌似底层是直接将元素转成字符串了,类似于(string)$v,个人理解这里应该递归处理; 3.swoole-cli中集成的redis客户端的scan方法貌似有点问题,我按照RESP规范描述的,在scan处理器中手动拼接字符串 "* 2\r\n:1\r\n*2\r\n$1\r\na\r\n$2\r\nbc\r\n",即数组[1,['a','bc']],客户端的scan方法返回值依然是false,游标值也是0,不知道是不是我自己写的有问题。

数据库驱动增加: pgsql 达梦 orcale

缘由: 反复尝试 github action windows-latest 环境,发现编译始终不通过 解决办法: 用一台全新的服务器来编译测试 ,找到问题所在。 > 阿里云按量付费服务器 4核16G windows 2022 数据中心版 服务器成本:3元RMB左右 > 安装 [cygwin](https://cygwin.com/) [setup-x86_64.exe](https://cygwin.com/setup-x86_64.exe)依赖,花费半小时左右 (有情提醒: 提前准备好安装包等,可以节省时间) > 提前准备脚本如下: (备注 ^ 是windows cmd 换行符) ```bash...

web ui (雏形 暂只启用前端页面页面) : https://swoole-cli-ui.jingjingxyk.com/ 缘由: https://github.com/swoole/swoole-src/issues/4636 视频: https://www.bilibili.com/video/BV1Eb4y1n7xE/ 视频节点: 0:58:34 视频节点: 1:02:44 视频节点: 1:05:34 [swoole-cli 实验分支 experiment ](https://github.com/swoole/swoole-cli/tree/experiment) [借助 swoole-cli 项目提供的依赖库,编译器PHP其他版本 ,使用这个分支 build_native_php](https://github.com/swoole/swoole-cli/tree/build_native_php) 其他: [借助依赖库 micro 二进制版本 build_native_php_sfx_micro](https://github.com/jingjingxyk/swoole-cli/tree/build_native_php_sfx_micro)...

1,支持event和protobuf 2,如何构建指定版本swoole (比如我想构建swoole版本4.8.13的cli, 官方提供的包没有我需要的扩展) protobuf扩展按如下添加成功 php prepare.php \ --with-build-type=release \ +protobuf \ --with-download-mirror-url=https://swoole-cli.jingjingxyk.com/ 但是无法成功构建

macOS 下会指向 `~/.swoole_cli/openssl/ssl` ,linux 会指向 `/usr/openssl/ssl` 用户需要创建软连接,可在编译 openssl 时指定证书路径,直接使用操作系统的证书

1、搭配 [quickstart 脚本](https://github.com/swoole/swoole-cli/tree/main/sapi/quickstart) 2、使用高配置云服务抢占式实例 快速构建 ;成果看这里: https://github.com/jingjingxyk/swoole-cli/issues/52