We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d158c3c commit e7e92b3Copy full SHA for e7e92b3
lib/php/libsdk/SDK/Config.php
@@ -309,12 +309,20 @@ public static function getDepsLocalPath(bool $reset = false) : ?string
309
}
310
311
if (NULL == self::$depsLocalPath || $reset) {
312
- if (file_exists("../deps")) {
313
- self::setDepsLocalPath(realpath("../deps"));
+ $tmp = dirname(getcwd()) . DIRECTORY_SEPARATOR . "deps";
+ if (is_dir($tmp)) {
314
+ self::setDepsLocalPath($tmp);
315
316
-
317
+
318
319
+ $tmp = realpath("../deps");
320
321
322
+ }
323
324
325
+ if (NULL == self::$depsLocalPath) {
326
if (file_exists("main/php_version.h")) {
327
/* Deps dir might not exist. */
328
self::setDepsLocalPath(realpath("..") . DIRECTORY_SEPARATOR . "deps");
0 commit comments