summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-19 11:10:03 +0800
committerXinchen Hui <laruence@php.net>2014-06-19 11:10:03 +0800
commitb7b5fa111b9966fa7690f9b0ab500747cdf58305 (patch)
treee47a09f0bd87e5ab6e838ab5289ddee8e7bf324f /ext/mysqli/mysqli.c
parent27e8e11ff97e9932957b8fd47ddc059f7f08acde (diff)
downloadphp-git-b7b5fa111b9966fa7690f9b0ab500747cdf58305.tar.gz
Fixed MySQLi built with mysqlnd
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index b99fd767c4..fa376a518a 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -497,7 +497,7 @@ static MYSQLND *mysqli_convert_zv_to_mysqlnd(zval * zv TSRMLS_DC)
mysqli_object *intern = Z_MYSQLI_P(zv);
if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) {
/* We know that we have a mysqli object, so this failure should be emitted */
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", intern->zo.ce->name);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", intern->zo.ce->name->val);
return NULL;
}
mysql = (MY_MYSQL *)(my_res->ptr);