codecasts / php-alpine

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

[php7.2] include Xdebug #22

Closed karser closed 6 years ago

karser commented 6 years ago
[2017-12-28] - Xdebug 2.6.0beta1 is out!

https://github.com/xdebug/xdebug/releases/tag/2.6.0beta1

Maybe it's stable enough to include?

hernandev commented 6 years ago

@karser I need to wait until it's stable. releasing beta software on stable alpine is not ideal since it should only be available on edge versions.

It should not take long until xdebug it's available.

karser commented 6 years ago

In my opinion, it isn't that critical for xdebug to be stable since It's not used in production, but missing xdebug extension was preventing me from switching to php7.2.

In case if someone needs, here is how xdebug 2.6.0beta1 can be installed on alpine manually:

RUN echo "@php https://php.codecasts.rocks/v3.7/php-7.2" >> /etc/apk/repositories \
    && apk --no-cache add \
        autoconf file g++ gcc libc-dev make pkgconf re2c php7-dev@php php7-pear@php \
        yaml-dev pcre-dev zlib-dev libmemcached-dev cyrus-sasl-dev \
    && ln -s /usr/bin/phpize7 /usr/bin/phpize \
    && phpize -v \
    && pecl install xdebug-2.6.0beta1 \
    && rm -rf /tmp/*

COPY ./docker/xdebug.ini /etc/php7/conf.d/00_xdebug.ini
karser commented 6 years ago

Xdebug 2.6.0 stable has been released

hernandev commented 6 years ago

I'll include it in a couple hours. thank you!

hernandev commented 6 years ago

xdebug is now available and testing is welcome, thanks!

hernandev commented 6 years ago

Since it's available and tested on all versions, I'm closing the issue. Thanks for all the support on this matter. You guys rocks!