From 4d04b34cc807206ac5337684bd0cfa784847b207 Mon Sep 17 00:00:00 2001 From: rango Date: Fri, 8 May 2026 12:02:17 +0800 Subject: [PATCH] test: add phpx directory detection test --- test_phpx_dir.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test_phpx_dir.php diff --git a/test_phpx_dir.php b/test_phpx_dir.php new file mode 100644 index 00000000..12903cc2 --- /dev/null +++ b/test_phpx_dir.php @@ -0,0 +1,12 @@ +setAccessible(true); + +echo "Testing getPhpxDir()...\n"; +echo "PHPX_HOME env: " . (getenv('PHPX_HOME') ?: '(not set)') . "\n"; +echo "Result: " . $ref->invoke($compiler) . "\n"; +echo "Directory exists: " . (is_dir($ref->invoke($compiler)) ? 'YES' : 'NO') . "\n";