craighooghiem / oauth-php

oAuth PHP
MIT License
0 stars 0 forks source link

OAuthStoreMySQL.php - should fail when connect fails. #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the mysql_connect fails the OAuthStoreMySQL initializer should abandon 
with an error 
message.

Now it silently fails, giving SQL errors when the database is accessed.

Original issue reported on code.google.com by ma...@pobox.com on 18 Feb 2009 at 1:40

GoogleCodeExporter commented 8 years ago
This has been fixed by Scherpeniss in r59.

Better error handling in MySQL OAuth store:
 * Throw an OAuthException when db connection fails
 * Throw an OAuthException instead of die() when encountering a SQL error

- Marc

Original comment by ma...@pobox.com on 16 Aug 2009 at 7:41