问题描述 2025-04-19 11:53:36 pid:22931 worker[none:1705] exit with status 256 2025-04-19 15:23:57 pid:10792 Worker[10792] process terminated 2025-04-19 15:23:57 pid:22931 worker[none:10792] exit with status 256 202...
问题描述 当面集成的thinkphp ORM 是什么版本,是否是最新的ThinkPHP ORM 4.0,如果不是最新官方是否有计划更新到最新的4.0版本...
问题描述 按照官方,安装了cache插件 composer require -W symfony/cache psr/simple-cache illuminate/redis 并更改了配置文件。 在需要的地方引入: use support\Cache; 使用时缺报错 报错信息 Undefined type 'support\Cache'.intelephense(P1009) 操作系统及workerman/we...
问题描述 安装微信sdk版本报错误 程序代码 composer require overtrue/wechat ^5.0 The "5.0" constraint for "overtrue/wechat" appears too strict and will likely not match what you want. See https://getcomposer.or...
问题描述 安装 webman/admin时数据库报错 这里详细描述问题 报错信息 SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the righ...
问题描述 原文档中:添加的定时任务在当前进程执行(不会启动新的进程或者线程),如果任务很重(特别是涉及到网络IO的任务),可能会导致该进程阻塞,暂时无法处理其它业务 实际运行下来,发现是非阻塞的。 $worker->count = 1; $worker->onMessage = function (\Workerman\Connection\TcpConnection $connection, \Wo...
问题描述 能否开发一个像laravel 一样的formRequest,个人比较推崇把比较简单初级纯粹的验证放在formrequest自动验证,把特殊复杂跟业务联系紧密的验证放在服务层。 为此你搜索到了哪些方案及不适用的原因 尝试写了一个formrequest 继承 support/request 类,但是一直报Missing input parameter :parameter错误,调试到app.php 没有...
问题描述 二进制打包失败 报错信息 D:\application\phpEnv\www\webman php webman build:bin 8.3 PHP Fatal error: Uncaught Symfony\Component\Console\Exception\LogicException: The command defined in "Webman\Console\Commands\AppPlug...
<?php declare(strict_types=1); namespace common\server; use Workerman\Crontab\Crontab; use Workerman\Worker; class CrontabServer { protected $worker; public function onWorkerStart($worker) {...
问题描述 为什么json格式化不会直接抛异常? 程序代码 $str = "asdda_周大生大——萨达dsasd\;lkl" $str = substr($str,0,10); return json($str) 这样会直接程序崩溃,写try catch都没用,捕捉不到 报错信息 只有这样才会报错 return json_encode($data,JSON_UNESCAPED_UNICODE |...
问题描述 使用 think-template 模版, 异常提示时 很难具体追踪哪一个文件。 有什么好的方案去解决嘛? 代码: 现在报错提示 1.页面 2.终端 设想: 能否把 终端输出的内容 在异常接管中获取 然后输出到页面. 可以的话代码应当如何写呢 或者是否有其他方式 能够准确定位到视图中错误文件...
问题描述 当应用插件里配置路由请求时用Route::get()请求不会经过配置的全局中间件。使用Route::any()请求是可以的。 程序代码或配置 config/route.php文件配置 use Webman\Route; Route::group('/core', function () { //这个get请求不经过全局中间件 Route::get('/admin/get-captcha', ...
问题描述 这里写问题描述 业务运行正常,就是不知怎么的使用php start.php status 命令不显示任何内容了,之前一直都是可以的,环境什么的也都未做任何改动。 ps -auxf strace -ttp 15871 不知道是什么原因,还请知道的大佬们告知一下,谢谢!...
怎样通过nginx代理获取用户真实IP? 获取的最新版本的workerman,创建的websocket协议,根据文档: https://www.workerman.net/doc/workerman/faq/get-real-ip-from-proxy.html nginx配置如下: 代码如下: 访问后报错如下: 折腾了一个多小时都取不到ip,请问大家我是哪个环节出错了呢?...
问题描述 用webman框架按照文档说的执行 composer require yansongda/pay ^3.0.0 命令后,提示 psr/log[1.1.0, ..., 1.1.4] ,现在用psr/log是3.0.2的,psr/log降到1.1.4左右的话,会有其他的问题吗 程序代码 composer require yansongda/pay ^3.0.0 ./composer.json has been...
问题描述 在centos7部署了个webman的项目,在windwos环境使用apiPost进行压力测试时会出现部分dial tcp 127.0.0.1: connectex: Only one usage of each socket address (protocol/network address/port) is normally permitted.的报错,大概占总请求的不到1%。 cs_id 是1到1...
问题描述 我使用Workerman\Http\Client来对外请求(并开启了协程),我发现在请求个别网站时会提示has been closed,我在本站和google上搜索与此有关的问题,有些人说ssl问题,于是我Workerman\Http\ConnectionPool的create中记录是否关闭ssl,事实上已关闭,我尝试写一个普通的curl来请求,却可以拿到数据,请问是什么回事呢 程序代码 $http = n...