summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdo/pdo_stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index f010d0453b..a322cd5761 100644
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -1873,7 +1873,8 @@ int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, in
mode = Z_LVAL(args[skip]);
flags = mode & PDO_FETCH_FLAGS;
- retval = pdo_stmt_verify_mode(stmt, mode, 0);
+ /* pdo_stmt_verify_mode() returns a boolean value */
+ retval = pdo_stmt_verify_mode(stmt, mode, 0) ? SUCCESS : FAILURE;
}
}