remicollet / remirepo

Issue tracker for
https://rpms.remirepo.net/
278 stars 53 forks source link

PHP version 8.2 #206

Closed remicollet closed 1 year ago

remicollet commented 2 years ago

According to PHP roadmap version 8.2.0 GA is planed for end of year

Plan is

Start to test, fix and build extensions, especially after RC1 (final API)

Current state

Extensions (checked are available as RPM, not checked have been tested but not built, missing have not been tested yet) :

Feedback welcome, feel free to ask for extensions you need for your tests.

remicollet commented 2 years ago

Now also available as module in the php:remi-8.2 stream

mnapoli commented 2 years ago

Sorry if this is a dumb question, but is sodium missing from the php82 package?

Here is what I do:

yum install -y \
        https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
        https://rpms.remirepo.net/enterprise/remi-release-7.rpm \
        yum-utils \
        epel-release \
        curl

yum-config-manager --enable remi-php82

yum update -y && yum upgrade -y

yum install --setopt=skip_missing_names_on_install=False -y \
        php82-php-cli-8.2.0~rc5-18.el7.remi.x86_64

(I want to install an exact version)

php -i shows that sodium is not installed.

Thank you for the help!

mnapoli commented 2 years ago

Oh additionally, as a side question relating to the PHP 8.2 package:

https://rpms.remirepo.net/enterprise/7/php82/x86_64/repoview/php-cli.html shows that the version is php-8.2.0~RC5-6.el7.remi.x86_64. However yum install php82-php-cli-8.2.0~RC5-6.el7.remi.x86_64 fails as there is no such package.

I had to find out that the version is actually php82-php-cli-8.2.0~rc5-18.el7.remi.x86_64. Should I look somewhere else (different web page) to find the latest version available?

remicollet commented 2 years ago

@mnapoli confused by module (single version) and SCL (multiple versions), see FAQ and

Reminder: see the Wizard instructions for proper configuration / usage

remicollet commented 2 years ago

php -i shows that sodium is not installed.

As for every extension, if you need it, you must install it (as explained by the wizard), so php-sodium or php82-php-sodium

What is wrong in your docker is that you enable "remi-php82" which provides the single version "php-*" and then install php82-php-cli, which is in "remi", or "remi-safe" repository (again, see the wizard)

You are also using the very old C7 distribution, which is close to its end of life, you should prefer a modern version (EL-8 or EL-9) especially to run modern software (as PHP 8.2). Everything is old on EL-7

P.S well... not C7 but amzn images... the Frankenstein image

deleugpn commented 1 year ago

We need EL-7 because of Amazon Linux 2, which is the OS behind AWS Lambda. Not sure if we can get EL-8 or EL-9 to work with AL2. If you have any pointers we would love it!

mnapoli commented 1 year ago

Thank you Remi for all the pointers and taking the time (even though I missed it in your FAQ), that was extremely useful!

Now everything is building fine, I'm switching all the builds to the module distribution: https://github.com/brefphp/aws-lambda-layers/pull/26

As Marco mentioned above, we are unfortunately stuck with Amazon Linux 2 for now :/ So far our attempts to use the EL-8 or EL-9 packages fail, but I guess that's not a surprise: https://github.com/brefphp/aws-lambda-layers/issues/22

remicollet commented 1 year ago

8.2 is released and announced https://blog.remirepo.net/post/2022/12/08/PHP-version-8.2.0-is-released