Skip to content

Commit ef385e8

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix logic error in PDO
2 parents 1086e4e + 4dfbf07 commit ef385e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,8 @@ int pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAMETERS, pdo_stmt_t *stmt, in
18661866
mode = Z_LVAL(args[skip]);
18671867
flags = mode & PDO_FETCH_FLAGS;
18681868

1869-
retval = pdo_stmt_verify_mode(stmt, mode, 0);
1869+
/* pdo_stmt_verify_mode() returns a boolean value */
1870+
retval = pdo_stmt_verify_mode(stmt, mode, 0) ? SUCCESS : FAILURE;
18701871
}
18711872
}
18721873

0 commit comments

Comments
 (0)