-
Hello! I cannot load Phalcon 5.0.0-alpha.2 with PHP 8.0. It only works with PHP 7.4. Here is a warning from PHP Startup:
Ini is being parsed, but extension not loaded. I'm basing on this script: https://github.com/MilesChou/docker-phalcon
Other extensions works well. Also, when I change image to php:7.4-apache, Phalcon runs without problems. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@aircodepl did you get this solved? |
Beta Was this translation helpful? Give feedback.
-
@aircodepl found the issue ,
|
Beta Was this translation helpful? Give feedback.
-
@aircodepl solved the issue, you just need to The undefined symbol PSR..... is because PSR is loaded after Phalcon. Try to put Phalcon below PSR. That will make it work. thanks to @niden |
Beta Was this translation helpful? Give feedback.
-
For those that use scrutinizer, installing PSR and Phalcon from PECL will put Phalcon above PSR in the
The above can be adjusted to suit your needs when setting up your CI or docker environment. For bare bones server just look at the load order. |
Beta Was this translation helpful? Give feedback.
-
Hi and I'm really sorry - I thought that I removed this topic after I realized it's because of PSR being loaded after Phalcon. Yes, week or two ago I did manage to install Phalcon 5 with Dockerimage and did it with similar to niden (but pathetic) trick:
I renamed ini file of PSR to be alphabetically loaded before. lol Here is the whole Dockerfile script: Of course, if anyone want to check it out, you need to keep in mind that I suck at setting up environments, especially docker. Dockerfiles that I managed to create are the only ones that I was able to run with just one simple command. Any other that I found over the internet or in Phalcon repository was getting me errors and all sort of problems. These that I wrote after looking up at MilesChou examples are working with no problem. docker-compose up -d and I'm ready to work. |
Beta Was this translation helpful? Give feedback.
Hi and I'm really sorry - I thought that I removed this topic after I realized it's because of PSR being loaded after Phalcon.
Yes, week or two ago I did manage to install Phalcon 5 with Dockerimage and did it with similar to niden (but pathetic) trick:
I renamed ini file of PSR to be alphabetically loaded before. lol
Here is the whole Dockerfile script:
https://github.com/aircodepl/phalcon-5-dockerfile/blob/master/Dockerfile
Of course, if anyone want to check it out, you need to keep in mind that I suck at setting up environments, especially docker. D…