-
-
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
Upgrade from PHP 7.4 to PHP 8 #106
Comments
You need to install the extension for PHP 8 as well, you can't simply use the same |
Can you shed some light on installing this almost non-existent php extension on CentOS 8? I tried to compile it from source with no success. checking for libuv... checking for uv_version in -luv... no Installed Packages |
Well, I managed to install this extension for PHP 8, but something is still not quite right.. At least in README.md file you could mention that libuv-devel needs to be installed on target OS to compile and install this extension. On CentOS 8 in /etc/yum.repos.d/CentOS-Linux-PowerTools.repo config file enabled must be 1. |
Feel free to open a PR with instructions. The package name will be different for different distributions, e.g. Ubuntu uses Could you shed some more light on what doesn't seem right? |
In this version I get error: It says uv_read_start function's second parameter is a callback/closure but the callback/closure only gets 2 args, when 3 args expected when called :/ Did not have any problems before. |
In original libuv documentation this callback is described as: buf is a pointer, sometimes invalid so in PHP it should be set to NULL but not skipped entirely. |
I guess you've used 0.2.x before, and you're using the |
Very nice to find this out. Only a minor version change in this extension have already introduced breaking changes. Something tells me I should have migrated to node.js long time ago, as before, PHP is meant just for Wordpress style web pages. Nothing has really changed :/ |
The I'm not sure why this has been changed or what changed. You're free to research that yourself if you want to use an unreleased version. We usually provide changelogs for releases only. That said, we're actively using the unreleased version, too, but only what's necessary to build libraries in the @amphp organization. I can only recommend to use We might even consider removing parts of |
**In reference to:** amphp#106, amphp#107, amphp#94, amphp#98, amphp#93, amphp#92, amphp#86, amphp#84, amphp#82, amphp#64 - BC signature changes has been revert since some of the tests wasn't changed to match, and too far off original design. - Using current **Libuv** version or systems installed one, not `pecl`, this setup is not reliant on the really slow `pecl` system for updated installations. The whole `uv_queue_work()` will need to be re implemented, the core internal `TSRM.c` thread related `tsrm_***_interpreter_context` functions used in PHP 7.4 has been removed since PHP 8.0.
Hi,
After upgrade from PHP 7.4 to PHP 8.0 I get this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'uv.so' (tried: /usr/lib64/php/modules/uv.so (/usr/lib64/php/modules/uv.so: undefined symbol: zend_internal_type_error), /usr/lib64/php/modules/uv.so.so (/usr/lib64/php/modules/uv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
ATTENTION! uv.so library file is in the /usr/lib64/php/modules directory!
The text was updated successfully, but these errors were encountered: