codecasts / php-alpine

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

How do we enable phpdbg #96

Closed NicklasWallgren closed 4 years ago

NicklasWallgren commented 4 years ago

I tried adding phpdbg as a dependency in my docker image, but it seems like php is compiled with --disable-phpdbg.

Why is dbg disabled, and how do I activate it?

NicklasWallgren commented 4 years ago

Found this

build() {
    cd "$builddir"

    # phpdbg
    _build --enable-phpdbg \
        --enable-phpdbg \
        --enable-phpdbg-webhelper \
        --disable-cgi \
        --disable-cli \
        || return 1
    # apache2 module
    _build --disable-phpdbg \
        --disable-cgi \
        --disable-cli \
        --with-apxs2 \
        || return 1
    mv libs/libphp7.so sapi/apache2handler/mod_php7.so
    # cgi,cli,fpm,embed,litespeed
    _build --disable-phpdbg \
        --enable-fpm \
        --enable-embed \
        --enable-litespeed \
        || return 1
}

But which core doesn't disable phpdbg?