Skip to content

Commit 3c10d4d

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix logic error in PDO
2 parents 0cc7267 + ef385e8 commit 3c10d4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,9 +1738,8 @@ int pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, zval *args, uint
17381738
stmt->default_fetch_type = PDO_FETCH_BOTH;
17391739

17401740
flags = mode & PDO_FETCH_FLAGS;
1741-
retval = pdo_stmt_verify_mode(stmt, mode, 0);
17421741

1743-
if (FAILURE == retval) {
1742+
if (!pdo_stmt_verify_mode(stmt, mode, 0)) {
17441743
PDO_STMT_CLEAR_ERR();
17451744
return FAILURE;
17461745
}

0 commit comments

Comments
 (0)