Skip to content

Fix logic error in PDO - #6215

Closed
Girgias wants to merge 1 commit into
php:PHP-7.3from
Girgias:fix-pdo-bug
Closed

Fix logic error in PDO#6215
Girgias wants to merge 1 commit into
php:PHP-7.3from
Girgias:fix-pdo-bug

Conversation

@Girgias

Copy link
Copy Markdown
Member

Found while working on #6212

@GirgiasGirgias mentioned this pull request Sep 25, 2020
Comment threadext/pdo/pdo_stmt.c
retval = SUCCESS;
} else {
retval = FAILURE;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retval = ... ? SUCCESS : FAILURE;

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's actually smarter... I don't use ternaries very often lol

@Girgias

Copy link
Copy Markdown
MemberAuthor

Merged as 4dfbf07

@GirgiasGirgias closed this Sep 25, 2020
@Girgias
Girgias deleted the fix-pdo-bug branch September 25, 2020 15:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Girgias@nikic