Giter Site home page Giter Site logo

[NFR]: PHP 8.3 support about cphalcon HOT 4 CLOSED

Jeckerson avatar Jeckerson commented on May 18, 2024
[NFR]: PHP 8.3 support

from cphalcon.

Comments (4)

Jeckerson avatar Jeckerson commented on May 18, 2024 1

@joseluisq Try to install via PECL: pecl install phalcon.
For some reason build/ directory contains generated code of previous Zephir version which still contain fast_add_function() function.

If you really want to compile from source, try to regenerate via cd build/ && php gen-build.php

from cphalcon.

niden avatar niden commented on May 18, 2024

Resolved in #16478

from cphalcon.

joseluisq avatar joseluisq commented on May 18, 2024

Does the latest phalcon 5.5.0 support PHP 8.3?

Because I got an error when I built it from the source using Docker.

$ uname -a
# Linux c0b179ebb845 6.4.16-linuxkit #1 SMP PREEMPT Thu Nov 16 10:49:20 UTC 2023 aarch64 Linux

$ git clone --depth=1 --branch=v5.5.0 https://github.com/phalcon/cphalcon.git /opt/phalcon
$ cd /opt/phalcon/build
$ sh ./install
$ cp -r phalcon/modules/phalcon.so "$(php -r 'echo ini_get("extension_dir");')"/
$ echo "extension=phalcon" > /usr/local/etc/php/conf.d/docker-php-ext-phalcon.ini

It builds successfully but fails If I test the phalcon.so module showing the error below.

Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20230831/phalcon.so: fast_add_function: symbol not found

$ php -r 'echo ini_get("extension_dir");'

# Warning: PHP Startup: Unable to load dynamic library 'phalcon' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20230831/phalcon (Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20230831/phalcon: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20230831/phalcon.so (Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20230831/phalcon.so: fast_add_function: symbol not found)) in Unknown on line 0
# /usr/local/lib/php/extensions/no-debug-non-zts-20230831/: No such file or directory

Maybe I'm doing something wrong?

FYI I noted that the fast_add_function was removed from PHP 8.3 php/php-src@3b06618 perhaps fails because of that?

from cphalcon.

joseluisq avatar joseluisq commented on May 18, 2024

@Jeckerson good to know.
The last time that I tried pecl install phalcon on Docker + KVM I ran into a Virtual memory exhausted: Cannot allocate memory error.
So I will give cd build/ && php gen-build.php a try and let's see.
Thanks!

from cphalcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.