summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_warning.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-28 00:09:26 +0800
committerXinchen Hui <laruence@php.net>2014-06-28 00:09:26 +0800
commit2f574e282e40874dfb8a03826a8c3c8576911bb2 (patch)
tree59a63a93a0975c4e777f7cff18fa31461fa6d83c /ext/mysqli/mysqli_warning.c
parente6338f5a6231c3a79cf26f057df66f96ea83ae80 (diff)
downloadphp-git-2f574e282e40874dfb8a03826a8c3c8576911bb2.tar.gz
Suppress warning
Diffstat (limited to 'ext/mysqli/mysqli_warning.c')
-rw-r--r--ext/mysqli/mysqli_warning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_warning.c b/ext/mysqli/mysqli_warning.c
index 9e1cbbf108..afcc05c16f 100644
--- a/ext/mysqli/mysqli_warning.c
+++ b/ext/mysqli/mysqli_warning.c
@@ -105,7 +105,7 @@ MYSQLI_WARNING *php_new_warning(const zval * reason, int errorno TSRMLS_DC)
w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING));
- ZVAL_DUP(&w->reason, reason);
+ ZVAL_DUP(&w->reason, (zval *)reason);
convert_to_string(&w->reason);
//????ZVAL_UTF8_STRINGL(&(w->reason), Z_STRVAL(w->reason), Z_STRLEN(w->reason), ZSTR_AUTOFREE);