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

Adjust packages and extensions in order to run on PHP 8.0 #51

Merged
merged 1 commit into from
May 6, 2022

Conversation

giannicic
Copy link
Contributor

@giannicic giannicic commented May 5, 2022

Q A
Documentation no
Bugfix no
BC Break no
New Feature no
RFC no
QA no

Description

I've seen that the project skeleton can't run on PHP-8.0 as reported here #44
Since I also have the need to run a new project on PHP-8.0 I've adjusted the composer packages and Dockerfile in order to run on that version.
Hope you find it usefull

@froschdesign
Copy link
Member

@giannicic
The support for PHP 8.0 was added with #31 and released with version 1.6.0.

But updating the Docker file is also good.

@froschdesign froschdesign added the Enhancement New feature or request label May 5, 2022
@froschdesign froschdesign linked an issue May 5, 2022 that may be closed by this pull request
@giannicic
Copy link
Contributor Author

giannicic commented May 5, 2022

@giannicic The support for PHP 8.0 was added with #31 and released with version 1.6.0.

But updating the Docker file is also good.

Ah ok, sorry. I haven't seen that composer works with --ignore-platform-req=php. I was following the instructions here https://api-tools.getlaminas.org/ and on PHP8 it gives the same errors reported in #44
Anyway I've updated the Dockerfile to PHP8. Thanks

@froschdesign

@Ocramius Ocramius added this to the 1.7.0 milestone May 6, 2022
@Ocramius Ocramius self-assigned this May 6, 2022
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 thanks @giannicic!

&& a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
&& mv /var/www/html /var/www/public \
&& curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not important, but we should probably use multi-stage here, pinning composer to a specific version:

FROM composer:2.3.3 AS get-composer
FROM php:8.0-apache

COPY --from=get-composer /usr/local/bin/composer /usr/local/bin/composer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll try it and create a PR then

@Ocramius Ocramius merged commit b7d569c into laminas-api-tools:1.7.x May 6, 2022
@giannicic giannicic deleted the php-8.0 branch May 6, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Zend-i18n package
3 participants