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 version 8.2 #206

Closed
remicollet opened this issue May 24, 2022 · 8 comments
Closed

PHP version 8.2 #206

remicollet opened this issue May 24, 2022 · 8 comments

Comments

@remicollet
Copy link
Owner

remicollet commented May 24, 2022

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

Plan is

  • provides SCL only for alpha/beta
  • provides both SCL and base packages (modules) for RC

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

Current state

  • php82-php-8.2.0~rc6-19 (Software Collections)
  • php-8.2.0~RC6-7 (Module))

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

  • ahorasick 0.0.7 with patches
  • amqp 1.11.0 using PR #118
  • apcu 5.1.22
  • apfd 1.0.3
  • ast 1.1.0
  • awscrt 1.0.9
  • base58 1.0.2
  • bitset 3.0.1 with patch from pr #14
  • brotli 0.13.1
  • cassandra (nano-interactive fork) 1.3.7 with patch from pr #36
  • couchbase 4.0.0
  • crypto 0.3.2
  • csv 0.4.2
  • datadog_trace not yet compatible
  • dbase 7.1.1 with upstream patches for test suite
  • decimal 1.4.0 with patches
  • dio 0.2.1
  • ds 1.4.0
  • eio 3.0.0RC4
  • env 0.2.1 with patches
  • ev 1.1.6RC1
  • event 3.0.8
  • excimer 1.0.4
  • fann 1.2.0RC1
  • gearman 2.1.0
  • geoip 1.1.1 with patches
  • geos 1.1.0 with patch from #27
  • geospatial 0.3.2
  • gmagick 2.0.6 with patches
  • gnupg 1.5.1
  • grpc 1.48.1
  • hdr_histogram 0.4.2
  • http 4.2.3
  • http_message is not yet compatible
  • ice is not yet compatible (zephir issue)
  • igbinary 3.2.7
  • imagick 3.7.0
  • inotify 3.0.0
  • ion 0.2.1 fixed upstream
  • ip2location 8.1.2
  • ip2proxy 3.0.3
  • jsonpath 1.0.0
  • json-post 1.1.0
  • krb5 1.1.4
  • leveldb 0.3.0
  • libvirt 0.5.6
  • luasandbox 4.1.0
  • lz4 0.4.3
  • lzf 1.7.0
  • mailparse 3.1.4 was fixed upstream patch
  • maxmindb 1.11.0
  • mcrypt 1.0.5
  • memcache 8.0
  • memcached 3.2.0 with upstream patch
  • memprof 3.0.2
  • mongodb 1.14.0
  • msgpack 2.2.0RC2
  • mustache using patch from pr #67
  • mysql 1.0.0DEV
  • mysql_xdevapi 8.0.30
  • nsq 3.5.1
  • oauth 2.0.7 with patch from pr #24
  • opencensus 0.3.0 with patch from pr #286
  • openswoole 4.12.0
  • pam 2.2.4
  • parle 0.8.3
  • pcsc 0.5.1
  • pcov 1.0.11
  • phalcon is not yet compatible (zephir issue)
  • phpiredis 1.0.1
  • pkcs 1.1.1 with patch from pr #70
  • pq 2.2.0 with upstream fix
  • protobuf 3.21.5
  • ps 1.4.4
  • psr 1.2.0
  • quickhash 1.1.1
  • raphf 2.0.1
  • rar 4.2.0 using patch from pr #18
  • rdkafka 6.0.3
  • realpath_turbo 2.0.0 with patch from pr #20
  • recode 1.0.0DEV
  • redis 5.3.7
  • rpminfo 0.6.0
  • rrd 1.2.0
  • runkit 4.0.0e6
  • scoutapm 1.8.2 using patch from pr #124
  • scrypt 1.4.3
  • sdl 2.7.0
  • sdl_image 0.4.0
  • sdl_mixer 0.4.0
  • sdl_ttf 0.3.0
  • seaslog 2.2.0
  • seassnowflake 1.0.0 with patch from pr #9
  • selinux 0.6.0
  • simdjson 2.0.3
  • simple_kafka_client 0.1.4
  • skywalking 5.0.1
  • smbclient 1.0.6
  • snappy 0.2.1
  • snuffleupagus is not yet compatible
  • solr 2.6.0, was fixed by pr #39
  • sqlsrv 5.10.1
  • ssdeep 1.1.0-11
  • ssh2 1.3.1
  • stats 2.0.3
  • stomp 2.0.3
  • swoole 4.8.12 / 5.0.1
  • sync 1.1.2 with 2 failed tests (deprecation)
  • teds 1.2.4
  • tensor is not yet compatible (zephir issue)
  • trader 0.5.1
  • translit 0.7.1
  • trie 0.1.2
  • uopz 7.1.1 but 1 failed test
  • uploadprogress 2.0.2
  • uuid 1.2.0
  • var_representation 0.1.2
  • varnish 1.2.6
  • vips 1.0.13
  • vld 0.18.0
  • xattr 1.4.0
  • xdebug 3.2.0alpha1
  • xdiff 2.1.1
  • xhprof 2.3.6
  • xlswriter 1.5.2 with patch from pe #451
  • xmldiff 1.1.3
  • xmlrpc 1.0.0RC3 with upstream patch for test suite
  • xxtea 1.0.11 with patches
  • xz 1.1.2
  • yac 2.3.1
  • yaconf 1.1.2
  • yaf 3.3.5 with patch from pr #579
  • yar 2.3.2 with patch from pr #177 after PHP pr #9576 merged
  • yaml 2.2.2
  • yaz 1.2.4
  • zephir_parser 1.5.1
  • zip 1.21.1
  • zmq 1.1.3 using PR #228
  • zstd 0.11.0

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

@remicollet
Copy link
Owner Author

remicollet commented Sep 2, 2022

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

@mnapoli
Copy link

mnapoli commented Nov 4, 2022

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
Copy link

mnapoli commented Nov 4, 2022

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
Copy link
Owner Author

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

Reminder: see the Wizard instructions for proper configuration / usage

@remicollet
Copy link
Owner Author

remicollet commented Nov 5, 2022

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

mnapoli added a commit to brefphp/aws-lambda-layers that referenced this issue Nov 18, 2022
@deleugpn
Copy link

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
Copy link

mnapoli commented Nov 18, 2022

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: brefphp/aws-lambda-layers#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: brefphp/aws-lambda-layers#22

@remicollet
Copy link
Owner Author

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

@remicollet remicollet unpinned this issue Jan 5, 2023
Repository owner deleted a comment from paulocesarborges Sep 14, 2023
phoenix933 pushed a commit to phoenix933/aws-lambda-layers that referenced this issue Dec 3, 2023
phoenix933 pushed a commit to phoenix933/aws-lambda-layers that referenced this issue Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants