iliaa Tue Jun 21 09:42:23 2005 EDT
Modified files:
/php-src/ext/pdo_mysql/tests prepare.inc
/php-src/ext/pdo_pgsql/tests prepare.inc
/php-src/ext/pdo_oci/tests prepare.inc
Log:
Fixed test skip conditions.
# Same needs to be done to odbc, but it seems access is restricted
# for "privileged" folks.
http://cvs.php.net/diff.php/php-src/ext/pdo_mysql/tests/prepare.inc?r1=1.3&r2=1.4&ty=u
Index: php-src/ext/pdo_mysql/tests/prepare.inc
diff -u php-src/ext/pdo_mysql/tests/prepare.inc:1.3
php-src/ext/pdo_mysql/tests/prepare.inc:1.4
--- php-src/ext/pdo_mysql/tests/prepare.inc:1.3 Sat Feb 26 10:41:54 2005
+++ php-src/ext/pdo_mysql/tests/prepare.inc Tue Jun 21 09:42:22 2005
@@ -4,7 +4,12 @@
$SQL = array();
-$DB = new pdo($CONNECTION, $USER, $PASSWD);
+try {
+ $DB = new pdo($CONNECTION, $USER, $PASSWD);
+} catch (Exception $tmp) {
+ $DB = NULL;
+ return;
+}
foreach(array('test','classtypes') as $name)
{
http://cvs.php.net/diff.php/php-src/ext/pdo_pgsql/tests/prepare.inc?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/pdo_pgsql/tests/prepare.inc
diff -u php-src/ext/pdo_pgsql/tests/prepare.inc:1.2
php-src/ext/pdo_pgsql/tests/prepare.inc:1.3
--- php-src/ext/pdo_pgsql/tests/prepare.inc:1.2 Mon Feb 21 13:54:45 2005
+++ php-src/ext/pdo_pgsql/tests/prepare.inc Tue Jun 21 09:42:22 2005
@@ -4,7 +4,12 @@
$SQL = array();
-$DB = new pdo($CONNECTION);
+try {
+ $DB = new pdo($CONNECTION);
+} catch (Exception $tmp) {
+ $DB = NULL;
+ return;
+}
foreach(array('test','classtypes') as $name)
{
http://cvs.php.net/diff.php/php-src/ext/pdo_oci/tests/prepare.inc?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/pdo_oci/tests/prepare.inc
diff -u php-src/ext/pdo_oci/tests/prepare.inc:1.1
php-src/ext/pdo_oci/tests/prepare.inc:1.2
--- php-src/ext/pdo_oci/tests/prepare.inc:1.1 Tue Mar 1 16:09:12 2005
+++ php-src/ext/pdo_oci/tests/prepare.inc Tue Jun 21 09:42:23 2005
@@ -4,7 +4,12 @@
$SQL = array();
-$DB = new pdo($CONNECTION, $USER, $PASSWORD);
+try {
+ $DB = new pdo($CONNECTION, $USER, $PASSWORD);
+} catch (Exception $tmp) {
+ $DB = NULL;
+ return;
+}
$DB->query('DROP TABLE test');
$DB->query('DROP TABLE classtypes');
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php