wez             Thu Jul  7 09:56:11 2005 EDT

  Modified files:              
    /php-src/ext/pdo/tests      pdo_test.inc 
  Log:
  extra paranoia about the attribute param
  
  
http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_test.inc?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/pdo/tests/pdo_test.inc
diff -u php-src/ext/pdo/tests/pdo_test.inc:1.1 
php-src/ext/pdo/tests/pdo_test.inc:1.2
--- php-src/ext/pdo/tests/pdo_test.inc:1.1      Wed Jul  6 09:19:25 2005
+++ php-src/ext/pdo/tests/pdo_test.inc  Thu Jul  7 09:56:09 2005
@@ -9,12 +9,12 @@
                $user = getenv('PDOTEST_USER');
                $pass = getenv('PDOTEST_PASS');
                $attr = getenv('PDOTEST_ATTR');
-               if (is_string($attr)) {
+               if (is_string($attr) && strlen($attr)) {
                        $attr = unserialize($attr);
                } else {
                        $attr = null;
                }
-
+               
                $db = new $classname($dsn, $user, $pass, $attr);
 
                // clean up any crufty test tables we might have left behind

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

Reply via email to