From 0eeb06bf175793296cf7aff3e23e0b7893ef9f30 Mon Sep 17 00:00:00 2001 From: Adam Baratz Date: Wed, 12 Oct 2016 11:58:46 -0400 Subject: Addendum to #73234: Assume param types are nullable --- ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt | 2 +- ext/pdo_mysql/tests/pecl_bug_5802.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pdo_mysql') diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt index f5afe2cc06..70b2f3fa25 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, PDO::PARAM_NULL)) + if (!$stmt->bindParam(1, $label)) 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 e8f8a7e4bb..04aa2c9552 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, PDO::PARAM_NULL); +$stmt->bindParam(':bar', $bar); $stmt->execute() or var_dump($stmt->errorInfo()); $bar = 'qaz'; -- cgit v1.2.1