Rename getCurrentPhp to getCurrentPhpName
pipe to build log
Let pecl installer works too
phpbrew install-ext xdebug now should work for you.
rebuild package.xml
update readme for the new extension installer.