]> granicus.if.org Git - php/commitdiff
Fixed test for ZTS builds
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 Oct 2005 00:15:02 +0000 (00:15 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 Oct 2005 00:15:02 +0000 (00:15 +0000)
ext/pdo_pgsql/tests/bug_33876.phpt

index be16daf87c75291040c2df9b93ec43166d51f71f..1184e7627e67812c3e0a9ccc1280c8912630aee6 100644 (file)
@@ -3,13 +3,13 @@ PDO PgSQL Bug #33876
 --SKIPIF--
 <?php
 if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
-require 'ext/pdo/tests/pdo_test.inc';
+require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
 PDOTest::skip();
 ?>
 --FILE--
 <?php
-require 'ext/pdo/tests/pdo_test.inc';
-$db = PDOTest::test_factory('ext/pdo_pgsql/tests/common.phpt');
+require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
+$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
 
 $db->exec('CREATE TABLE test (foo varchar(5) NOT NULL, bar bool NOT NULL)');