Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

3.0.0 升级组件发现 3.0.9 可以 到 3.0.13 就报错

未关闭
#12 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
backend

调研方向

首先,使用 composer update 重现从 hyperf/crontab v3.0.9 升级到 v3.0.13,然后运行 php bin/hyperf.php start。检查 vendor/hyperf/server/src/Server.php 中的启动路径,并比较两个软件包版本,以确定为什么 Swoole 事件循环已经被创建。升级后的版本在没有报告中的警告和弃用提示的情况下启动,即表示完成。

由索引模型根据 Issue 内容生成。

描述

/data # composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading hyperf/crontab (v3.0.9 => v3.0.13)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downloading hyperf/crontab (v3.0.13)
  - Upgrading hyperf/crontab (v3.0.9 => v3.0.13): Extracting archive
Package laminas/laminas-mime is abandoned, you should avoid using it. Use symfony/mime instead.
Generating optimized autoload files
> rm -rf runtime/container
81 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
/data # php bin/hyperf.php start
START  
PHP Warning:  Swoole\Server::start(): eventLoop has already been created, unable to start Swoole\Http\Server in /data/vendor/hyperf/server/src/Server.php on line 50

Warning: Swoole\Server::start(): eventLoop has already been created, unable to start Swoole\Http\Server in /data/vendor/hyperf/server/src/Server.php on line 50
PHP Deprecated:  Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown on line 0

Deprecated: Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown on line 0

3.0.9 就正常

/data # composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Downgrading hyperf/crontab (v3.0.13 => v3.0.9)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downgrading hyperf/crontab (v3.0.13 => v3.0.9): Extracting archive
Package laminas/laminas-mime is abandoned, you should avoid using it. Use symfony/mime instead.
Generating optimized autoload files
> rm -rf runtime/container
81 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
主要语言
PHP
星标
13
派生
13
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperf/crontab 的其他 Issue

查看 hyperf/crontab 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。