diff options
-rw-r--r-- | ext/pdo/pdo_stmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 38ce69e288..adc921bbd7 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -1866,7 +1866,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; } } |