Commit:    a98359b7b95e06f4ad2a3369e20550bdeeb1e0d1
Author:    Matteo Beccati <mbecc...@php.net>         Sun, 2 Jun 2013 13:32:48 
+0200
Parents:   cbf90b1a908d8f5c1799a1e206b968f393ba7d99
Branches:  PHP-5.4 PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=a98359b7b95e06f4ad2a3369e20550bdeeb1e0d1

Log:
Improved test portability so that it doesn't fail with pdo_pgsql

Changed paths:
  M  ext/pdo/tests/bug61292.phpt


Diff:
diff --git a/ext/pdo/tests/bug61292.phpt b/ext/pdo/tests/bug61292.phpt
index 2381fd1..05b2e9c 100644
--- a/ext/pdo/tests/bug61292.phpt
+++ b/ext/pdo/tests/bug61292.phpt
@@ -17,8 +17,15 @@ class Database_SQL extends PDO
 {
        function __construct()
        {
+                $dsn = getenv('PDOTEST_DSN');
+                $user = getenv('PDOTEST_USER');
+                $pass = getenv('PDOTEST_PASS');
+
+                if ($user === false) $user = NULL;
+                if ($pass === false) $pass = NULL;
                $options = array(PDO::ATTR_PERSISTENT => TRUE);
-               parent::__construct(getenv("PDOTEST_DSN"), 
getenv("PDOTEST_USER"), getenv("PDOTEST_PASS"), $options);
+
+               parent::__construct($dsn, $user, $pass, $options);
        }
 
        var $bar = array();


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to