]> granicus.if.org Git - php/commitdiff
Fixed tests for ZTS builds
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 Oct 2005 00:12:30 +0000 (00:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 Oct 2005 00:12:30 +0000 (00:12 +0000)
ext/pdo_mysql/tests/pecl_bug_5200.phpt
ext/pdo_mysql/tests/show_tables.phpt

index c6b319c78abb814487c1e34b0e912d41faa72e55..2dffd1141fff4999a9a9849d2cc08cb3ba540d22 100644 (file)
@@ -3,14 +3,14 @@ PDO MySQL PECL Bug #5200
 --SKIPIF--
 <?php
 if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) die('skip not loaded');
-require 'ext/pdo_mysql/tests/config.inc';
-require 'ext/pdo/tests/pdo_test.inc';
+require dirname(__FILE__) . '/config.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_mysql/tests/common.phpt');
+require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
+$db = PDOTest::test_factory(dirname(__FILE__). '/common.phpt');
 
 $db->exec("CREATE TABLE test (bar INT NOT NULL, phase enum('please_select', 'I', 'II', 'IIa', 'IIb', 'III', 'IV'))");
 
index dc95d5f5f706d0527f0c02dee182a6465ca71d29..90b07db32e8f67daa15818dea246a0ebe7b670d7 100644 (file)
@@ -3,14 +3,14 @@ PDO MySQL SHOW TABLES
 --SKIPIF--
 <?php
 if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) die('skip not loaded');
-require 'ext/pdo_mysql/tests/config.inc';
-require 'ext/pdo/tests/pdo_test.inc';
+require dirname(__FILE__) . '/config.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_mysql/tests/common.phpt');
+require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
+$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
 
 print_r($db->query('SHOW TABLES'));
 --EXPECT--