summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_unicode.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2020-07-05 20:05:29 +0200
committerAlex Dowad <alexinbeijing@gmail.com>2020-08-31 23:18:13 +0200
commit7eddcabe2b63a9834f6bde1f01b96503612e9e4a (patch)
tree1d8ddfebf1ae26a728349f5079277afbfc7279aa /ext/mbstring/php_unicode.c
parent62317d592fd6e6df34e68214c9277a979c898de6 (diff)
downloadphp-git-7eddcabe2b63a9834f6bde1f01b96503612e9e4a.tar.gz
Don't guard mbstring code with #ifdef HAVE_MBSTRING
This is just a very silly feature of mbstring -- you can compile the source files with HAVE_MBSTRING undefined, and it will all just compile to (almost) nothing. What is the use of this? Why compile the source files and link against them if you don't want the mbstring extension? It doesn't make any kind of sense.
Diffstat (limited to 'ext/mbstring/php_unicode.c')
-rw-r--r--ext/mbstring/php_unicode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c
index c96d9b7180..d0cf9f55e5 100644
--- a/ext/mbstring/php_unicode.c
+++ b/ext/mbstring/php_unicode.c
@@ -30,8 +30,6 @@
#include "php.h"
-#ifdef HAVE_MBSTRING
-
/* include case folding data generated from the official UnicodeData.txt file */
#include "mbstring.h"
#include "php_unicode.h"
@@ -440,6 +438,3 @@ MBSTRING_API char *php_unicode_convert_case(
*ret_len = result.len;
return (char *) result.val;
}
-
-
-#endif /* HAVE_MBSTRING */