From 84514a9a3fd604e5d5a5ef8e80d0725edd91e249 Mon Sep 17 00:00:00 2001 From: walkor Date: Tue, 22 Mar 2022 09:56:29 +0800 Subject: [PATCH] Update helpers.php --- support/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/helpers.php b/support/helpers.php index 1df2aa4..1958169 100644 --- a/support/helpers.php +++ b/support/helpers.php @@ -424,7 +424,7 @@ function worker_start($process_name, $config) */ function get_realpath(string $file_path): string { - if (is_phar()) { + if (strpos($file_path, 'phar://') === 0) { return $file_path; } else { return realpath($file_path);