]> granicus.if.org Git - php/commitdiff
Fix tests affected by 32b6154a61fae820386527f3019f8c5937fc5d27
authorAdam Baratz <adambaratz@php.net>
Tue, 11 Oct 2016 14:15:36 +0000 (10:15 -0400)
committerAdam Baratz <adambaratz@php.net>
Tue, 11 Oct 2016 14:15:50 +0000 (10:15 -0400)
ext/pdo_mysql/tests/pdo_mysql_stmt_bindparam.phpt
ext/pdo_mysql/tests/pecl_bug_5802.phpt

index 70b2f3fa2505ece3b580dd29904731cb751670a7..f5afe2cc061f0aed6ad95e2bd577354644b4910d 100644 (file)
@@ -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));
 
index 04aa2c9552a735c07991ec2d9fced29dc2ea3b49..e8f8a7e4bb3185405b18b8a9676426a81f6d0a90 100644 (file)
@@ -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';