From 678cb6038814592d9d77334da6d61bd1d0497bae Mon Sep 17 00:00:00 2001 From: Jason Coward Date: Tue, 30 Sep 2025 15:08:57 -0600 Subject: [PATCH] Remove realpath to enable xPDO usage in PHARs The use of realpath in the xPDO class to define XPDO_CORE_PATH breaks xPDO usage when included in a PHAR archive. --- src/xPDO/xPDO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xPDO/xPDO.php b/src/xPDO/xPDO.php index 90d34fd3..002c7222 100644 --- a/src/xPDO/xPDO.php +++ b/src/xPDO/xPDO.php @@ -24,7 +24,7 @@ use xPDO\Om\xPDOQuery; if (!defined('XPDO_CORE_PATH')) { - $xpdo_core_path= strtr(realpath(dirname(__FILE__)), '\\', '/') . '/'; + $xpdo_core_path= strtr(dirname(__FILE__), '\\', '/') . '/'; /** * @var string The full path to the xPDO root directory. */