From: Rui Hirokawa Date: Sun, 6 May 2001 02:44:12 +0000 (+0000) Subject: fixed a compilation problem without --enable-mbstr-enc-trans. X-Git-Tag: php-4.0.6RC1~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0d91b12f8833631eba0be010a940a10fd9e4981;p=php fixed a compilation problem without --enable-mbstr-enc-trans. --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index e6df77f736..0487ccd7a8 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -73,6 +73,7 @@ static int php_mbstr_default_identify_list_size = sizeof(php_mbstr_default_ident static unsigned char third_and_rest_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE_REST }; +#if defined(MBSTR_ENC_TRANS) SAPI_POST_HANDLER_FUNC(php_mbstr_post_handler); static sapi_post_entry mbstr_post_entries[] = { @@ -80,6 +81,7 @@ static sapi_post_entry mbstr_post_entries[] = { { MULTIPART_CONTENT_TYPE, sizeof(MULTIPART_CONTENT_TYPE)-1, sapi_read_standard_form_data, rfc1867_post_handler }, { NULL, 0, NULL } }; +#endif function_entry mbstring_functions[] = { PHP_FE(mb_internal_encoding, NULL)