mirror of
https://github.com/php-win-ext/php-sdk-binary-tools.git
synced 2026-04-27 19:13:22 +02:00
yet more path recognition variant
This commit is contained in:
@@ -309,12 +309,20 @@ class Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (NULL == self::$depsLocalPath || $reset) {
|
if (NULL == self::$depsLocalPath || $reset) {
|
||||||
if (file_exists("../deps")) {
|
$tmp = dirname(getcwd()) . DIRECTORY_SEPARATOR . "deps";
|
||||||
self::setDepsLocalPath(realpath("../deps"));
|
if (is_dir($tmp)) {
|
||||||
|
self::setDepsLocalPath($tmp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NULL == self::$depsLocalPath || $reset) {
|
||||||
|
$tmp = realpath("../deps");
|
||||||
|
if (is_dir($tmp)) {
|
||||||
|
self::setDepsLocalPath($tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NULL == self::$depsLocalPath || $reset) {
|
if (NULL == self::$depsLocalPath) {
|
||||||
if (file_exists("main/php_version.h")) {
|
if (file_exists("main/php_version.h")) {
|
||||||
/* Deps dir might not exist. */
|
/* Deps dir might not exist. */
|
||||||
self::setDepsLocalPath(realpath("..") . DIRECTORY_SEPARATOR . "deps");
|
self::setDepsLocalPath(realpath("..") . DIRECTORY_SEPARATOR . "deps");
|
||||||
|
|||||||
Reference in New Issue
Block a user