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

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by reproducing the upgrade from hyperf/crontab v3.0.9 to v3.0.13 with composer update, then run php bin/hyperf.php start. Inspect the startup path in vendor/hyperf/server/src/Server.php and compare the two package versions to identify why the Swoole event loop is already created. Done means the upgraded version starts without the reported warning and deprecation.

Written by the indexing model from the issue text.

Description

/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!
Dominant language
PHP
Stars
13
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperf/crontab

All issues in hyperf/crontab

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.