-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add phalcon extension #16
Comments
Why not. BTW PR is welcome! |
Thank you @joseluisq This will definitely help our development! |
@niden awesome! Releases will come up soon. |
when I try to build using the following ARG PHALCON_VERSION="5.1.2"
RUN set -eux \
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git \
&& cd cphalcon/ext \
&& phpize && ./configure \
&& make -j$(nproc) \
&& make install \
&& docker-php-ext-enable phalcon \
&& true Last lines of the build output:
When I try to use the container then I got this:
The PHP.ini is created at |
The reason I would like to go with installing it in that way rather than the
|
@joseluisq use
|
@Jeckerson great! I will give it a try with PHP 8.1 |
Released on v8.1.13 |
BTW I will also include phalcon in the next 8.0.27 release. |
Update: on PHP 8.0, phalcon is still failing with a "virtual memory exhausted: Out of memory" error via qemu. Any idea how to make it build? |
@Jeckerson might be able to shed some more light here but from what I recall (and looking at my old Stack overflow comment)
$CFLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=8192 so that will make the script: cd ext
phpize
./configure --enable-phalcon CFLAGS="-O2 -Wall -fvisibility=hidden -flto -DZEPHIR_RELEASE=1 --param ggc-min-expand=0 --param ggc-min-heapsize=8192"
make -s
sudo make -s install
cd ext/
./install
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 Notable is that I have the same issue with a bug report, where a member of the community sent me a repo with test code to reproduce a bug and the docker containers are in Alpine. I have several failures with it and was diagnosing it also :/ |
@niden Yes, it might help. |
This first option is slower and consumes all the allowed time per running job (6h). So discarded.
I did that #16 (comment) for 8.0 as well but it failed some time ago. But curious that It works for 8.1.
I will investigate if I can address the problem in a similar way increasing swap space. |
Minor update about Phalcon extension. Looks like you guys made possible to build the latest Phalcon 5.x for PHP 8.2. |
But for PHP 8.0, it is still running out of memory on KVM ones with the latest Phalcon 5.2.1, which is weird because it is not the case for 8.1 or 8.2. |
Might be due specific behaviour of PHP8.0 and our code base, as there are a lot of conditions to check PHP version. |
Supported versions: 7.4, 8.0 and 8.1
The text was updated successfully, but these errors were encountered: