]> granicus.if.org Git - php/commitdiff
Another build fix
authorIlia Alshanetsky <iliaa@php.net>
Sat, 7 Oct 2006 18:24:51 +0000 (18:24 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 7 Oct 2006 18:24:51 +0000 (18:24 +0000)
ext/mysqli/mysqli_nonapi.c

index 0e93b7cd10e87f859da8647f5a2fe2ef9d0e7c21..c9e5de1e9a7cb0a3c309e832e8960a46d581a47f 100644 (file)
@@ -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);