Comments (4)
@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.
Resolved in #16478
from cphalcon.
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.
@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)
- [BUG]: Not able to install phalcon for PHP 8.2.12 HOT 1
- [BUG]: volt upper filter does not work on special local characters HOT 5
- [BUG]: using skipAttributes method causes column map load incorrectly in inherited entity HOT 1
- [BUG]: Logger stream with php://stdout is stuck when the output in the same file
- [BUG]: \Phalcon\Cli\Router must be compatible with \Phalcon\Cli\RouterInterface HOT 1
- [NFR]: Add precompiled binaries for Linux and macOS ARM64
- [NFR]: Resetting query filters for query builder HOT 1
- [BUG]: Router parts cannot be unset, if matches parts are optional
- [BUG]: IncludedMaximum & IncludedMinimum behavior inverted for StringLength, Min, Max validation HOT 1
- Broken link https://phalcon.io/en-us/download/windows [NFR]: HOT 1
- [BUG]: Model Validation Leaks Memory HOT 5
- [BUG]: Form with field that is not part of the Model raised deprecated warning on bind() HOT 2
- [NFR]: ORM WITH JSON_EXTRACt HOT 1
- [BUG]: phalcon devtools not working HOT 3
- [NFR]: Assets which respect the base static URI from `\Phalcon\Mvc\Url`
- [BUG]: Phalcon\Support classes leak memory HOT 6
- [BUG]: "SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens" produced when you use the same named binded parameter more than once in query conditions HOT 4
- [DOC] - Remove dead links in CONTRIBUTING.md
- [NFR]: Implement autocompletion support for modern IDE HOT 2
- [BUG]: Discrepancy Between Total Items in Paginator and Direct Query Using Phalcon's QueryBuilder HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cphalcon.