From: Xinchen Hui Date: Fri, 27 Jun 2014 16:09:26 +0000 (+0800) Subject: Suppress warning X-Git-Tag: POST_PHPNG_MERGE~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f574e282e40874dfb8a03826a8c3c8576911bb2;p=php Suppress warning --- 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);