Phalcon 5 can't be installed or used on PHP 8.2 #16463
Replies: 10 comments
-
I also encountered the same problem. The Dockerfile is roughly written as follows. FROM php:8.2-fpm-bullseye
(Installation of necessary packages, etc....omitted)
ENV PHALCON_VERSION="5.4.0"
RUN set -eux; \
pecl install phalcon-${PHALCON_VERSION}; \
pecl clear-cache |
Beta Was this translation helpful? Give feedback.
-
You need at least 3Gb of RAM to compile Phalcon, ideally more. Compilation warning are to ignore. If you are installing via pecl inside VM or in machine with limited RAM resource, add swap file with 5Gb. |
Beta Was this translation helpful? Give feedback.
-
Screen.Recording.2023-11-05.at.18.15.39.480p.movHere is example how RAM grows during single thread compilation, which takes ±3 minutes. |
Beta Was this translation helpful? Give feedback.
-
I've got it. I don't know what @svdigital-development environment is, but I hope things go well. |
Beta Was this translation helpful? Give feedback.
-
@s-ohnishi ideally is to pre-compile ready to use |
Beta Was this translation helpful? Give feedback.
-
I see, I didn't notice that. |
Beta Was this translation helpful? Give feedback.
-
@s-ohnishi This is on todo list, there are some ready to use images, but still plenty things to do. https://github.com/phalcon/docker - track this repository for further updates. |
Beta Was this translation helpful? Give feedback.
-
@Jeckerson |
Beta Was this translation helpful? Give feedback.
-
@s-ohnishi Find me in our Discord sever for further ideas - https://phalcon.io/discord |
Beta Was this translation helpful? Give feedback.
-
FYI... I had two occurances of pecl install phalcon doing the same as the original poster... meaning it started installing, showed the zephir warnings and then never completed or returned. When I eventually aborted the pecl install and ran htop, I noticed that the swap space was maxed out. I was able to reboot the server and then the pecl install phalcon command completed as expected. This was on a server with 4gb of memory and a server with 6gb of memory. In both cases the server reboot "fixed" the issue and allowed pecl to install phalcon. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
We are UNABLE to use Phalcon 5 with PHP 8.2 and this is preventing us to upgrade our applications. PHP 8.1 will end its active support in one month and it's unbelievable that it's impossible to upgrade to php8.2 using Phalcon.
The documentation is unuseful: https://docs.phalcon.io/5.0/it-it/installation
"pecl install phalcon" on Debian generates a HUGE amount of warnings on Zephir.
After all those warnings, the installation stops and gets stuck. The pointer remains on its position like it's waiting for a process to end, but in reality the server is not doing anything. I tried waiting even half an hour, but nothing happens.
I tried to compile from sources, but I get the same errors.
I can't find any new sury repository for php8.2-phalcon5 (until php 8.1 it was SOOO simple and handy to install Phalcon so easily).
I read #16401 and #15973 but no one explains how to fix this bug/issue.
The documentation doesn't explain how to install Phalcon on PHP 8.2.
To Reproduce
Steps to reproduce the behavior:
Try to install Phalcon5 with php 8.2.
Expected behavior
Phalcon5 is correctly installed in a few seconds and available for use on PHP 8.2 (fpm/cli).
Details
Beta Was this translation helpful? Give feedback.
All reactions