codecasts / php-alpine

PHP APK Repository for Alpine Linux
https://github.com/codecasts/php-alpine
483 stars 58 forks source link

php 7.2 has no phpize installed #33

Closed ChristianYeah closed 6 years ago

ChristianYeah commented 6 years ago

alpine 3.7 php 7.2.* there is no phpize or phpize7 after i run apk add php7-dev@php

but its ok for 7.1.*

hernandev commented 6 years ago

bug confirmed.

hernandev commented 6 years ago

The problem is installing php7-dev without installing php7-xml and other dependencies first.

The version constraints are not correctly bound so you will end with extensions of PHP 7.1.

A fix is under development right now, and is already available for PHP 7.2 on Alpine v3.7. Other version fixes are almost ready.

On the next weeks, I'll update the package names to php-7.1 and php-7.2 or something similar to avoid completely alpine packages conflict.

hernandev commented 6 years ago

Also, notice that even with the fix, the binary name is phpize7, not phpize.

Thanks for reporting this.

hernandev commented 6 years ago

Fixed on the latest releases. The documentation was also updated to reflect some version constraints changes.

Just use php-dev@php when installing or use the new base images.