diff options
Diffstat (limited to 'ext/pdo/tests/bug_44409.phpt')
-rw-r--r-- | ext/pdo/tests/bug_44409.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/tests/bug_44409.phpt b/ext/pdo/tests/bug_44409.phpt index 64d385b26c..f32eb879bd 100644 --- a/ext/pdo/tests/bug_44409.phpt +++ b/ext/pdo/tests/bug_44409.phpt @@ -1,7 +1,7 @@ --TEST-- PDO Common: Bug #44409 (PDO::FETCH_SERIALIZE calls __construct()) --SKIPIF-- -<?php # vim:ft=php +<?php if (!extension_loaded('pdo')) die('skip'); $dir = getenv('REDIR_TEST_DIR'); if (false == $dir) die('skip no driver'); @@ -10,7 +10,7 @@ PDOTest::skip(); ?> --FILE-- <?php -if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/'); +if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.__DIR__ . '/../../pdo/tests/'); require getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); |