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.
#include "mb_gpc.h"
/* }}} */
-#ifdef HAVE_MBSTRING
-
ZEND_EXTERN_MODULE_GLOBALS(mbstring)
/* {{{ MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data)
}
}
/* }}} */
-
-#endif /* HAVE_MBSTRING */
#include "php.h"
/* }}} */
-#ifdef HAVE_MBSTRING
/* {{{ typedefs */
typedef struct _php_mb_encoding_handler_info_t {
const char *separator;
int _php_mb_enable_encoding_translation(int flag);
const mbfl_encoding *_php_mb_encoding_handler_ex(const php_mb_encoding_handler_info_t *info, zval *arg, char *res);
/* }}} */
-#endif /* HAVE_MBSTRING */
#include "mbstring_arginfo.h"
/* }}} */
-#ifdef HAVE_MBSTRING
-
/* {{{ prototypes */
ZEND_DECLARE_MODULE_GLOBALS(mbstring)
MBSTRG(http_input_identify) = (const mbfl_encoding*)encoding;
}
/* }}} */
-
-#endif /* HAVE_MBSTRING */
# define MBSTRING_API /* nothing special */
#endif
-#ifdef HAVE_MBSTRING
-
#include "libmbfl/mbfl/mbfilter.h"
#include "SAPI.h"
#define PHP_MBSTRING_API 20021024
extern zend_module_entry mbstring_module_entry;
-#define mbstring_module_ptr &mbstring_module_entry
+#define phpext_mbstring_ptr &mbstring_module_entry
PHP_MINIT_FUNCTION(mbstring);
PHP_MSHUTDOWN_FUNCTION(mbstring);
ZEND_TSRMLS_CACHE_EXTERN()
#endif
-#else /* HAVE_MBSTRING */
-
-#define mbstring_module_ptr NULL
-
-#endif /* HAVE_MBSTRING */
-
-#define phpext_mbstring_ptr mbstring_module_ptr
-
-#endif /* _MBSTRING_H */
+#endif /* _MBSTRING_H */
#include "php.h"
-#ifdef HAVE_MBSTRING
-
/* include case folding data generated from the official UnicodeData.txt file */
#include "mbstring.h"
#include "php_unicode.h"
*ret_len = result.len;
return (char *) result.val;
}
-
-
-#endif /* HAVE_MBSTRING */
#ifndef PHP_UNICODE_H
#define PHP_UNICODE_H
-#ifdef HAVE_MBSTRING
-
#define UC_MN 0 /* Mark, Non-Spacing */
#define UC_MC 1 /* Mark, Spacing Combining */
#define UC_ME 2 /* Mark, Enclosing */
#define php_unicode_is_cased(cc) php_unicode_is_prop1(cc, UC_CASED)
#define php_unicode_is_case_ignorable(cc) php_unicode_is_prop1(cc, UC_CASE_IGNORABLE)
-
-#endif
-
-
#endif /* PHP_UNICODE_H */