From 2f574e282e40874dfb8a03826a8c3c8576911bb2 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 28 Jun 2014 00:09:26 +0800 Subject: [PATCH] Suppress warning --- ext/mysqli/mysqli_warning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0