diff options
author | Ferenc Kovacs <tyrael@php.net> | 2015-04-01 23:06:04 +0200 |
---|---|---|
committer | Ferenc Kovacs <tyrael@php.net> | 2015-04-01 23:06:04 +0200 |
commit | 7c1a1189beef34dfebc1ecefc99b2c1db3793105 (patch) | |
tree | 30768a9aa0245efc6f48f0be96a757ad600dd432 | |
parent | 0a41af216ecabf76b54a78783b7cac01ca353ef9 (diff) | |
download | php-git-7c1a1189beef34dfebc1ecefc99b2c1db3793105.tar.gz |
oop, put both the error number and message for both db object to the error message
-rw-r--r-- | ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt b/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt index 12699c5bf3..7972df313d 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt @@ -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'); } |