From 26dfce7f36d1c6f737ac241df1315a1b42b932c7 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Fri, 15 Mar 2019 22:55:30 +0100 Subject: Replace dirname(__FILE__) by __DIR__ in tests --- ext/pdo_odbc/tests/common.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pdo_odbc') diff --git a/ext/pdo_odbc/tests/common.phpt b/ext/pdo_odbc/tests/common.phpt index 5b1cf83194..5606ad4b86 100644 --- a/ext/pdo_odbc/tests/common.phpt +++ b/ext/pdo_odbc/tests/common.phpt @@ -46,7 +46,7 @@ if (false !== getenv('PDOTEST_DSN')) { // on Windows and user didn't set PDOTEST_DSN, try this as a fallback: // check if MS Access DB is installed, and if yes, try using it. create a temporary MS access database. // - $path = realpath(dirname(__FILE__)) . '\pdo_odbc.mdb'; + $path = realpath(__DIR__) . '\pdo_odbc.mdb'; if (!file_exists($path)) { try { // try to create database -- cgit v1.2.1