Skip to content
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

PHP 8.0 support #15186

Closed
drmuey opened this issue Oct 26, 2020 · 26 comments
Closed

PHP 8.0 support #15186

drmuey opened this issue Oct 26, 2020 · 26 comments
Assignees
Labels
5.0 The issues we want to solve in the 5.0 release new feature request Planned Feature or New Feature Request

Comments

@drmuey
Copy link

drmuey commented Oct 26, 2020

Hello,

Are you all looking at PHP 8.0 support?

If so do you have a ball park ETA?

Thanks!

@drmuey drmuey added the new feature request Planned Feature or New Feature Request label Oct 26, 2020
@sinbadxiii
Copy link
Contributor

I am also interested in php 8 support

@Jeckerson Jeckerson added 5.0 The issues we want to solve in the 5.0 release transfer labels Oct 27, 2020
@Jeckerson
Copy link
Member

Jeckerson commented Oct 27, 2020

Phalcon v4.1 only is supported with 7.2, 7.3 and 7.4 PHP versions. PHP8 will be supported since Phalcon v5.0 and v4.2.

Phalcon 5 will be in PHP native, here is the official repository - https://github.com/phalcon/phalcon
ETA - end of 2020 ~ beginning of 2021.

@Jeckerson Jeckerson added the discussion Request for comments and discussion label Oct 27, 2020
@Jeckerson
Copy link
Member

@Jeckerson
Copy link
Member

@ghost
Copy link

ghost commented Dec 9, 2020

Yeah, I would rather wait a year or two but have native php Phalcon 5 more complete and PHP8 ready. Good to see the new official v5 repo! Keep up the good work guys! You are all amazing!

@Jeckerson Jeckerson added 4.2.0 and removed 5.0 The issues we want to solve in the 5.0 release transfer labels Jan 25, 2021
@Jeckerson
Copy link
Member

Jeckerson commented Jan 27, 2021

@Jeckerson Jeckerson pinned this issue Jan 27, 2021
@phalcon phalcon deleted a comment from firemanhu Jan 27, 2021
@phalcon phalcon deleted a comment from AnthoniG Jan 27, 2021
@Jeckerson
Copy link
Member

Jeckerson commented Jan 27, 2021

@firemanhu @AnthoniG For any demagogic questions please use - Discussions

@Jeckerson Jeckerson removed the discussion Request for comments and discussion label Jan 27, 2021
@Jeckerson
Copy link
Member

image

First local run of unit tests with PHP8

niden pushed a commit that referenced this issue Mar 23, 2021
niden pushed a commit that referenced this issue Mar 23, 2021
niden pushed a commit that referenced this issue Mar 23, 2021
niden pushed a commit that referenced this issue Mar 23, 2021
niden pushed a commit that referenced this issue Mar 23, 2021
niden pushed a commit that referenced this issue Mar 23, 2021
@Jeckerson Jeckerson self-assigned this Mar 27, 2021
@Jeckerson
Copy link
Member

Related #15357

@lcdennison
Copy link

What's the process to install/compile the 5.0.0-alpha.1 version? I tried using the process at https://docs.phalcon.io/4.0/en/installation#compile-from-sources (using both master and tags/v5.0.0-alpha.1), but I'm getting issues with that method on my local Debian setup.

Normally I'd do a simple install via Remi repo, but the updated Phalcon package is not available there yet because it's not on PECL.

@Jeckerson
Copy link
Member

Jeckerson commented Apr 13, 2021

@ldennison Hello, you will need latest 0.13.x version of Zephir and PSR extension installed, after that clone project and use this commands:

php zephir compile

Fast check if it was compiled:

php -d extension=ext/modules/phalcon.so -r echo "Phalcon\Version::get();"

Then install extension globally:

php zephir install

And after that check if it was installed:

php --ri phalcon

In case you are in Windows, Win dll's will be available since next release.

@ghost
Copy link

ghost commented May 2, 2021

Will 4.2 be Zephir/C?

@niden
Copy link
Member

niden commented May 2, 2021

I do not think there will be a 4.2.x.

4.1.x is a PHP extension
5.x is also a PHP extension

6.x is native PHP

@fakharak
Copy link

Is there any updated ETA for 4.1.x and / or 5.x ?

What are expectations related to the performance difference between cphalcon (5.x) and PHP-native (6.x) implementations?

@niden
Copy link
Member

niden commented Jul 2, 2021

Is there any updated ETA for 4.1.x and / or 5.x ?

What are expectations related to the performance difference between cphalcon (5.x) and PHP-native (6.x) implementations?

We have mentioned this before in blog posts as well as community hangouts:

4.x is maintained only for security updates. Most likely we will not release any more
5.x is our main focus since this is kind of a "fix a lot of interfaces" version. This is our main focus and it does support PHP 8. I am running alpha3 on a project right now.

6.x (native) will start after we have v5 stable and out the door.

There will be an impact in performance for sure. v6 will feature benchmarks which will allow us to see bottlenecks. For those bottleneck areas we will also have an extension (or extensions) available for people that want more performance. v6 will detect if the extension is loaded and use it.

@Jeckerson
Copy link
Member

PHP 8.0 support depends on Zephir, which already supports it since version 0.13.x. Closing.

@Jeckerson Jeckerson unpinned this issue Aug 7, 2021
@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release new feature request Planned Feature or New Feature Request
Projects
Archived in project
Development

No branches or pull requests

6 participants