From: Adam Baratz Date: Tue, 11 Oct 2016 14:15:36 +0000 (-0400) Subject: Fix tests affected by 32b6154a61fae820386527f3019f8c5937fc5d27 X-Git-Tag: php-7.2.0alpha1~1169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ddfce116b55ec1add4b6dd05006a979bb9b873a;p=php Fix tests affected by 32b6154a61fae820386527f3019f8c5937fc5d27 --- diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt index 70b2f3fa25..f5afe2cc06 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt @@ -51,7 +51,7 @@ MySQLPDOTest::skip(); printf("NULL...\n"); $stmt = $db->prepare('INSERT INTO test(id, label) VALUES (100, ?)'); $label = null; - if (!$stmt->bindParam(1, $label)) + if (!$stmt->bindParam(1, $label, PDO::PARAM_NULL)) printf("[%03d + 4] Cannot bind parameter, %s %s\n", $offset, $stmt->errorCode(), var_export($stmt->errorInfo(), true)); diff --git a/ext/pdo_mysql/tests/pecl_bug_5802.phpt b/ext/pdo_mysql/tests/pecl_bug_5802.phpt index 04aa2c9552..e8f8a7e4bb 100644 --- a/ext/pdo_mysql/tests/pecl_bug_5802.phpt +++ b/ext/pdo_mysql/tests/pecl_bug_5802.phpt @@ -20,7 +20,7 @@ $stmt->bindParam(':bar', $bar); $stmt->execute() or var_dump($stmt->errorInfo()); $bar = null; -$stmt->bindParam(':bar', $bar); +$stmt->bindParam(':bar', $bar, PDO::PARAM_NULL); $stmt->execute() or var_dump($stmt->errorInfo()); $bar = 'qaz';