Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop mysql syntax error exceptions #4312

Closed
wants to merge 14 commits into from
Closed

Conversation

mgottein
Copy link
Contributor

No description provided.

@mgottein mgottein changed the title Fix #4141 Add mechanism to stop mysql pdo driver from throwing certain pdo exceptions Nov 22, 2014
@facebook-github-bot
Copy link
Contributor

This pull request has been imported into Phabricator, and discussion and review of the diff will take place at https://reviews.facebook.net/D29409

@mgottein mgottein changed the title Add mechanism to stop mysql pdo driver from throwing certain pdo exceptions Stop mysql syntax error exceptions Nov 24, 2014
@fredemmott
Copy link
Contributor

Sorry, we're not going to take this. While yes, this is incompatible with PHP5, this is only incompatible when your SQL has a syntax error. Making this visible seems like a good thing.

@fredemmott fredemmott closed this Nov 29, 2014
@Majkl578
Copy link
Contributor

Throwing exceptions where PHP does not is not a good idea and doesn't seem like a good thing... I see the good side of it, but not when it is forced.

@fredemmott
Copy link
Contributor

We generally agree, however this isn't for a runtime error as such - this is showing a fundamental flaw in whatever PHP code triggers it, and likely a security issue at that.

@fredemmott
Copy link
Contributor

Also, this code already throws in PHP5 for other kinds of errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants