1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

oop, put both the error number and message for both db object to the error message

This commit is contained in:
Ferenc Kovacs
2015-04-01 23:06:04 +02:00
parent 0a41af216e
commit 7c1a1189be
@@ -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');
}