From 20198804bb3da468758b65e83baeb42d19a38109 Mon Sep 17 00:00:00 2001 From: v-kaywon Date: Mon, 20 Mar 2017 12:42:31 -0700 Subject: [PATCH] Update pdo_065_construct_persistent.phpt --- test/pdo_sqlsrv/pdo_065_construct_persistent.phpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/pdo_sqlsrv/pdo_065_construct_persistent.phpt b/test/pdo_sqlsrv/pdo_065_construct_persistent.phpt index 0f0fc5a0..ca925d39 100644 --- a/test/pdo_sqlsrv/pdo_065_construct_persistent.phpt +++ b/test/pdo_sqlsrv/pdo_065_construct_persistent.phpt @@ -13,8 +13,7 @@ try{ $attr = array(PDO::ATTR_PERSISTENT => true); $conn = new PDO( $dsn, $username, $password, $attr); - //free the statement and connection - $stmt=null; + //free the connection $conn=null; } catch( PDOException $e ) { @@ -33,6 +32,9 @@ try{ if ($result['c1'] == 1 && $result['c2'] == 'column2') { echo "Test successfully"; } + //free the statement and connection + $stmt = null; + $conn = null; } catch( PDOException $e ) { var_dump( $e);