From 01a9630946e60430b1ead6c27d3844e155ba72d6 Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Tue, 8 Jun 2010 14:57:10 +0000 Subject: [PATCH] Portability improvement --- ext/mysqli/tests/bug48909.phpt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ext/mysqli/tests/bug48909.phpt b/ext/mysqli/tests/bug48909.phpt index 81df544190f..76901390cbb 100644 --- a/ext/mysqli/tests/bug48909.phpt +++ b/ext/mysqli/tests/bug48909.phpt @@ -23,8 +23,15 @@ require_once('skipifconnectfailure.inc'); if (!$stmt->bind_param("bb",$bvar, $bvar)) printf("[004] [%d] %s\n", $stmt->errno, $stmt->error); - if (!$stmt->execute()) - printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + if (!$stmt->execute()) { + if ($stmt->errno != 1366) { + /* + $bvar is null, b is for BLOB - any error like this should be OK: + 1366 - Incorrect integer value: '' for column 'id' at row 1 + */ + printf("[005] [%d] %s\n", $stmt->errno, $stmt->error); + } + } $stmt->close(); $link->close();