1#!/usr/bin/env sh 2git clone https://github.com/php/php-src 3cd php-src 4git checkout $PHP 5cd sapi 6rm -rf phpdbg 7git clone https://github.com/krakjoe/phpdbg.git 8cd ../ 9./buildconf --force 10./configure --disable-all --enable-phpdbg --enable-maintainer-zts 11make 12