amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
522 stars 39 forks source link

[Package Update Request] - Enable php-zip for PHP 8.1 #622

Closed Jreginato closed 4 months ago

Jreginato commented 8 months ago

Describe the bug We are using the Amazon Linux 2023 environment with PHP 8.1, but we are having some problems with the ZIP library.

It is installed on the server, but in PHP it is not recognized using the php -m command.

We've already tried to include extension=zip and other things in php.ini, but it still isn't recognized.

We have already tried to uninstall the library and install it again, but without success.

We also tried to install another type of library, but it generates an incompatibility error with other AWS files.

How can I resolve this? the ZIP is not displayed at all in phpinfo.

adereis commented 8 months ago

Hi.

From what I see, the zip module/package is available for php-8.2, but not php-8.1. I tested it with php8.2 and php8.2-zip installed, and the library is showing up in the output of php -m.

If php8.2 works for you, you might want to try the following command:

sudo dnf install php8.2 php8.2-zip --allowerasing (please double check the transaction before accepting the proposed changes)

If you need further assistance, please share the list of your php packages installed. You can get that with rpm -qa | grep php.

Cheers.

stewartsmith commented 4 months ago

php-zip for PHP 8.1 is part of AL2023.4 as per https://docs.aws.amazon.com/linux/al2023/release-notes/new-AL2023.3-AL2023.4.html