-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with openswoole 22 #110
Comments
Maybe using Also, this version has built-in support for psr-7. Might simplify integrating it. |
I think it is more difficult than only removed All classes changed at least namespace - example Will |
It is already building on this: https://docs.mezzio.dev/mezzio-swoole/v4/intro/#swoole Should modifications to the latest versions be necessary, then any help is welcome! |
Worth checking this too, as a smoke test: laminas/laminas.dev#40 edit: that swoole from dev container is not actually used by automation or deployments. |
Namespace \Swoole is still supported in v22.x (look release notes) |
Maybe it can help someone right now. Can be solved error above with some hack, just call (before server start)
bacause $setProcessName static & public property - it was worked solution. ) More right way (specially for this library) write own function |
This is how I quickly solved the problem without having to interfere with the library:
Can check the version of swoole > 4.6.0 to override: |
I would like to know if the focus will be 1st on OpenSwoole, and only keep compatibility with Swoole or even remove support for it. Case: Newcomers to Mezzio, reading the official docs are guided for OpenSwoole. I looked over the testing setup in the project, and noticed that it is testing against Swoole and not OpenSwoole. Wouldn't it be OK to refactor the tests to use OpenSwoole? They do have an official PPA that works on top of Sury's PHP PPA currently used. If the focus in code will be always 1st on Swoole, then the docs should be changed so less experienced people will not get in issues mezzio-swoole. |
@madalinignisca We (the Laminas TSC) have been discussing splitting the repo so that this one targets only Swoole, and a new one targets specifically OpenSwoole. The reason is because:
We do not currently have a timeline for this. It will require first a new minor (deprecating OpenSwoole usage here), and then a new major (removing support for OpenSwoole here). |
Is there any status update on this? The current state of the package is broken being that the docs recommend OpenSwoole, but there are major updates with OpenSwoole that need to be addressed, like the namespace change. |
I haven’t seen any updates on OpenSwoole in over a year. Me? I’ve switched back, reluctantly. I was sure there was a TSC where dropping support for OpenSwoole was discussed recently, but can’t find it. |
Feature Request
Summary
I have tried a project where I use this library with openswoole, and using openswoole 22.0.0, there seems to be calls to now removed functions (So far I have identified
Fatal error: Uncaught Error: Call to undefined function swoole_set_process_name() in mezzio/mezzio-swoole/src/Event/ProcessNameTrait.php:33
).I believe this is the first version that trully deviates from swoole and might require considering how hard would be to continue supporting both.
The changelog does not mention the removal of this particular function, so I wonder how many other undocumented changes there are.
The text was updated successfully, but these errors were encountered: