summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt b/ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt
index 7d7ef79f30..fc9cc64a7f 100644
--- a/ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt
+++ b/ext/mysqli/tests/mysqli_stmt_fetch_geom.phpt
@@ -45,7 +45,7 @@ mysqli_stmt_fetch - geometry / spatial types
return false;
}
- if (!mysqli_stmt_execute($stmt)) {
+ if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_store_result($stmt)) {
printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
mysqli_stmt_close($stmt);
return false;
@@ -65,7 +65,7 @@ mysqli_stmt_fetch - geometry / spatial types
$num = 0;
$rows = array();
- while (true === mysqli_stmt_fetch($stmt)) {
+ while (true === @mysqli_stmt_fetch($stmt)) {
$rows[] = array('id' => $id, 'label' => $bind_res);
$num++;
}