diff --git a/backend/icu.cpp b/backend/icu.cpp index 9a50c04..e950163 100644 --- a/backend/icu.cpp +++ b/backend/icu.cpp @@ -62,8 +62,6 @@ static inline php_ustring_t *php_ustring_copy_ex(php_ustring_t *target, php_ustr static inline zval *_php_ustring_zval_copy_ex(zval *target, php_ustring_t *source, int32_t offset, int32_t length TSRMLS_DC) { - TSRMLS_FETCH(); - object_init_ex(target, ce_UString); php_ustring_copy_ex(php_ustring_fetch(target), source, offset, length); diff --git a/ustring.cpp b/ustring.cpp index aa2d137..077e76d 100644 --- a/ustring.cpp +++ b/ustring.cpp @@ -22,7 +22,9 @@ #include "config.h" #endif +#ifdef _WIN32 #include "unicode/unistr.h" +#endif extern "C" { # include "php.h"