Skip to content

Commit

Permalink
oop, put both the error number and message for both db object to the …
Browse files Browse the repository at this point in the history
…error message
  • Loading branch information
Tyrael committed Apr 1, 2015
1 parent 0a41af2 commit 7c1a118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ MySQLPDOTest::skip();
printf("[001] %s, [%s] %s [%s] %s\n",
$e->getMessage(),
(is_object($db1)) ? $db1->errorCode() : 'n/a',
(is_object($db1)) ? implode(' ', $db1->errorInfo()) : 'n/a');
(is_object($db2)) ? $db2->errorCode() : 'n/a',
(is_object($db2)) ? implode(' ', $db2->errorInfo()) : 'n/a');
}

Expand Down

0 comments on commit 7c1a118

Please sign in to comment.