mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Portability improvement
This commit is contained in:
parent
0484919f62
commit
01a9630946
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user