From: Ilia Alshanetsky Date: Sat, 7 Oct 2006 18:24:51 +0000 (+0000) Subject: Another build fix X-Git-Tag: RELEASE_1_0_0RC1~1367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae21a1ab79040317858899e99c1bc62648e80bb1;p=php Another build fix --- diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c index 0e93b7cd10..c9e5de1e9a 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -93,11 +93,13 @@ PHP_FUNCTION(mysqli_connect) RETURN_FALSE; } +#ifdef HAVE_MYSQLI_SET_CHARSET /* when PHP runs in unicode, set default character set to utf8 */ if (UG(unicode)) { mysql_set_character_set(mysql->mysql, "utf8"); mysql->conv = UG(utf8_conv); } +#endif /* clear error */ php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql) TSRMLS_CC);