com php-src: Fixed error reporting: ext/mysql/php_mysql.c
| From: | Dmitry Stogov | Date: | Wed, 09 Apr 2014 13:08:52 +0000 |
| Subject: | com php-src: Fixed error reporting: ext/mysql/php_mysql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77458@lists.php.net to get a copy of this message | ||
Commit: 9b276c7a0c9f036484b56b87c6681e2b56f6b9f0
Author: Dmitry Stogov <dmitry@zend.com> Wed, 9 Apr 2014 17:08:52 +0400
Parents: b7e6c8d0f8afb57e9f2012379c0d10c8aaf62804
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9b276c7a0c9f036484b56b87c6681e2b56f6b9f0
Log:
Fixed error reporting
Changed paths:
M ext/mysql/php_mysql.c
Diff:
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 2fdb517..7b0c11c 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -1978,7 +1978,7 @@ Q: String or long first?
}
if (!tmp_field) { /* no match found */
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s%s%s not found in MySQL result index
%ld",
- (table_name?table_name:""), (table_name?".":""), field_name,
Z_LVAL_P(result));
+ (table_name?table_name:""), (table_name?".":""), field_name,
Z_RES_P(result)->handle);
efree(field_name);
if (table_name) {
efree(table_name);