summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/022.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cli/tests/022.phpt')
-rw-r--r--sapi/cli/tests/022.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/tests/022.phpt b/sapi/cli/tests/022.phpt
index 0110220bee..3b97016b58 100644
--- a/sapi/cli/tests/022.phpt
+++ b/sapi/cli/tests/022.phpt
@@ -9,7 +9,7 @@ if (substr(PHP_OS, 0, 3) == "WIN") die("skip non windows test");
<?php
$php = getenv("TEST_PHP_EXECUTABLE");
$socket_file = tempnam(sys_get_temp_dir(), pathinfo(__FILE__, PATHINFO_FILENAME) . '.sock');
-$test_file = dirname(__FILE__) . '/' . pathinfo(__FILE__, PATHINFO_FILENAME) . '.inc';
+$test_file = __DIR__ . '/' . pathinfo(__FILE__, PATHINFO_FILENAME) . '.inc';
if (file_exists($socket_file)) {
unlink($socket_file);
}