com php-src: Suppress warning: ext/mysqli/mysqli_warning.c
| From: | Xinchen Hui | Date: | Fri, 27 Jun 2014 16:09:26 +0000 |
| Subject: | com php-src: Suppress warning: ext/mysqli/mysqli_warning.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79099@lists.php.net to get a copy of this message | ||
Commit: 2f574e282e40874dfb8a03826a8c3c8576911bb2
Author: Xinchen Hui <laruence@php.net> Sat, 28 Jun 2014 00:09:26 +0800
Parents: e6338f5a6231c3a79cf26f057df66f96ea83ae80
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f574e282e40874dfb8a03826a8c3c8576911bb2
Log:
Suppress warning
Changed paths:
M ext/mysqli/mysqli_warning.c
Diff:
diff --git a/ext/mysqli/mysqli_warning.c b/ext/mysqli/mysqli_warning.c
index 9e1cbbf..afcc05c 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);