cvs: php-src /ext/pdo/tests pdo_test.inc

From: Date: Thu, 07 Jul 2005 13:56:11 +0000
Subject: cvs: php-src /ext/pdo/tests pdo_test.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32751@lists.php.net to get a copy of this message
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

« previous php.cvs (#32751) next »