null reference when connecting fails? #11

Closed
opened 2016-05-23 16:07:29 +02:00 by fsedarkalex · 4 comments
fsedarkalex commented 2016-05-23 16:07:29 +02:00 (Migrated from git.firesplash-entertainment.com)
PHP Warning:  mysqli::mysqli(): (28000/1045): Access denied for user 'EasyMySQLi-User'@'xx' (using password: YES) in .../test.php on line 12
Dropping Test-Table if exists / queryNoResult(...) - Simple QueryPHP Warning:  mysqli::stmt_init(): Couldn't fetch EasyMySQLi in .../EasyMySQLi.inc.php on line 262
PHP Fatal error:  Call to a member function prepare() on null in .../EasyMySQLi.inc.php on line 316

supposed to throw an exception in both places (line 316 as well as when connecting fails) instead of php fatal error...

``` PHP Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'EasyMySQLi-User'@'xx' (using password: YES) in .../test.php on line 12 Dropping Test-Table if exists / queryNoResult(...) - Simple QueryPHP Warning: mysqli::stmt_init(): Couldn't fetch EasyMySQLi in .../EasyMySQLi.inc.php on line 262 PHP Fatal error: Call to a member function prepare() on null in .../EasyMySQLi.inc.php on line 316 ``` supposed to throw an exception in both places (line 316 as well as when connecting fails) instead of php fatal error...
fsedarkalex commented 2016-05-23 16:40:30 +02:00 (Migrated from git.firesplash-entertainment.com)

Started branch 11-null-reference-when-connecting-fails

By Alexander Täffner on 2016-05-23T14:40:30 (imported from GitLab project)

Started branch [`11-null-reference-when-connecting-fails`](https://git.firesplash.de/open-source/EasyMySQLi/compare/master...11-null-reference-when-connecting-fails) *By Alexander Täffner on 2016-05-23T14:40:30 (imported from GitLab project)*
fsedarkalex commented 2016-05-23 17:25:09 +02:00 (Migrated from git.firesplash-entertainment.com)

mentioned in merge request !18

By Alexander Täffner on 2016-05-23T15:25:09 (imported from GitLab project)

mentioned in merge request !18 *By Alexander Täffner on 2016-05-23T15:25:09 (imported from GitLab project)*
fsedarkalex commented 2016-05-23 17:25:30 +02:00 (Migrated from git.firesplash-entertainment.com)

Status changed to closed by merge request !18

By Alexander Täffner on 2016-05-23T15:25:30 (imported from GitLab project)

Status changed to closed by merge request !18 *By Alexander Täffner on 2016-05-23T15:25:30 (imported from GitLab project)*
fsedarkalex commented 2016-05-23 17:25:30 +02:00 (Migrated from git.firesplash-entertainment.com)

Status changed to closed by commit d18564dcd2

By Alexander Täffner on 2016-05-23T15:25:30 (imported from GitLab project)

Status changed to closed by commit d18564dcd24ee380348745e9a0ff762d443a3420 *By Alexander Täffner on 2016-05-23T15:25:30 (imported from GitLab project)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenSource_Libraries/PHP-EasyMySQLi#11
No description provided.