summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorAdam Baratz <adambaratz@php.net>2016-10-12 11:58:46 -0400
committerAdam Baratz <adambaratz@php.net>2016-10-12 11:59:01 -0400
commit0eeb06bf175793296cf7aff3e23e0b7893ef9f30 (patch)
treed42c67833072f7f758e50e9335ae40c6c5f30eb8 /ext/pdo_mysql
parentcba18b61c1db14490a2f5be734d60028a777eeb5 (diff)
downloadphp-git-0eeb06bf175793296cf7aff3e23e0b7893ef9f30.tar.gz
Addendum to #73234: Assume param types are nullable
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt2
-rw-r--r--ext/pdo_mysql/tests/pecl_bug_5802.phpt2
2 files changed, 2 insertions, 2 deletions
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';