exclude_pattern 里加个|/public/ 会把所有目录下的public目录都排除掉 假如app目录下有public这个目录 也会被排除掉 这个咋整啊...
在config/app.php上加了spl_autoload_register 但是好像并没有什么用 spl_autoload_register(function ($class) { $filePath = '/' . str_replace('\\', '/', $class) . '.php'; if (file_exists(base_path...
问题描述 不知道怎么复现。。。 程序代码或配置 ErrorException: Undefined array key "private-2B132E6C" in /app/vendor/webman/push/src/Server.php:512 Stack trace: #0 /app/vendor/webman/push/src/Server.php(512): {closure}() #1 /app/vend...
问题描述 这里写问题描述 <?php namespace crontab; use Workerman\Crontab\Crontab; class Test { public function onWorkerStart() { //CrontabA new Crontab('*/1 * * * * *', function () { ...
<?php declare(strict_types=1); namespace common\server; use Workerman\Crontab\Crontab; use Workerman\Worker; class CrontabServer { protected $worker; public function onWorkerStart($worker) {...
vendor 打包在外面 扩展的时候方便些 但是目前好像不行 首先 webman 文件的'/vendor/autoload.php'引入需要修改 但是这个修改好了之后 后面还是会出现一堆问题...
二进制打包后 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/TroubleshootingSMTP server error: Failed to connect to server 不打包没问题...
在test控制器内接管方法 public function __call($method, $request) { $path = explode('/', request()->path()); $action = $path[4] ?? 'index'; $class = "resource\" . $method; $handler = new $class(); return $ha...
打包没有问题 但是启动一直报错 ./webman.bin start stream_socket_server(): Unable to connect to tcp://0.0.0.0:3131 (Address in use) 服务在env读取前 就启动了 ...
1.5的时候 $html = ThinkPHP::render(base_path() . '/tpls/emails/default.html', [], ''); 1.6的时候 $html = ThinkPHP::render('/tpls/emails/default.html', [], ''); 报错 template not exists:default.html 打印 var_dump($viewPat...
开发时使用了 pgsql mysql redis等数据库 当项目运行一段时间后 访问pgsql就会出现exit with status 11 访问mysql没有问题 访问redis没有问题 不知道是什么原因 用的是thinkorm 以为是webman的thinkorm没有把pgsql心跳加上 所以自己把pgsql类型加上了 但是还是没效果 查过问答 有说是扩展原因引起的 但是我除了装了一个redis之外就没装过别的...
macbook PHP 8.3.11 (cli) (built: Aug 27 2024 19:16:34) (NTS) 之前在windows下没有问题 但是换到macbook后发现启动不起来 检查后发现是配置文件读取不到 检查了禁用函数没有发现问题 另外查询了问答 发现有使用$_ENV读取的 但是尝试打印发现还是空 打印$_SERVER没有看到相关键值...
strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? Worker::stopAll() : posix_kill(posix_getpid(), SIGUSR1); 只能触达到一个进程...