CHH/php-build — Issue #26: PHP_BUILD_ROOT is incorrect when running php-build from symlink
Author: ampt
Created: 2011-12-14 08:46:25+00:00
State: open

When using php-build as a symbolic link the path resolution seems to resolve to the directory above the symbolic link, instead of following the symbolic link and then resolving the path to the directory above the actual php-build file.

For example with the following setup:

Path to symlink: `/usr/local/bin/php-build`
original file: `/home/me/php-build/bin/php-build`
PHP_BUILD_ROOT: `/usr/local`

I haven't come to a nice solution yet, but perhaps looking at how ruby-build handles this would give insight to a nice cross platform solution?