com php-src: oop, put both the error number and message for both db object to the error message: ext/pdo_mysql/tests/pdo_mysql_pconn ect.phpt

From: Date: Wed, 01 Apr 2015 21:06:04 +0000
Subject: com php-src: oop, put both the error number and message for both db object to the error message: ext/pdo_mysql/tests/pdo_mysql_pconn ect.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86034@lists.php.net to get a copy of this message
Commit: 7c1a1189beef34dfebc1ecefc99b2c1db3793105 Author: Ferenc Kovacs <tyrael@php.net> Wed, 1 Apr 2015 23:06:04 +0200 Parents: 0a41af216ecabf76b54a78783b7cac01ca353ef9 Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7c1a1189beef34dfebc1ecefc99b2c1db3793105 Log: oop, put both the error number and message for both db object to the error message Changed paths: M ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt Diff: diff --git a/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt b/ext/pdo_mysql/tests/pdo_mysql_pconnect.phpt index 12699c5..7972df3 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'); }

« previous php.cvs (#86034) next »