Skip to content

Instantly share code, notes, and snippets.

@sptndc
Created October 19, 2018 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sptndc/c5614b7559714f179e855ac9067dc84c to your computer and use it in GitHub Desktop.
Save sptndc/c5614b7559714f179e855ac9067dc84c to your computer and use it in GitHub Desktop.
Patch for PHP intl
Index: ext/intl/grapheme/grapheme_string.c
===================================================================
--- ext/intl/grapheme/grapheme_string.c (revisión: 311981)
+++ ext/intl/grapheme/grapheme_string.c (copia de trabajo)
@@ -665,7 +665,7 @@
/* }}} */
/* {{{ grapheme_extract_charcount_iter - grapheme iterator for grapheme_extract MAXCHARS */
-inline int32_t
+static inline int32_t
grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len)
{
int pos = 0, prev_pos = 0;
@@ -702,7 +702,7 @@
/* }}} */
/* {{{ grapheme_extract_bytecount_iter - grapheme iterator for grapheme_extract MAXBYTES */
-inline int32_t
+static inline int32_t
grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len)
{
int pos = 0, prev_pos = 0;
@@ -736,7 +736,7 @@
/* }}} */
/* {{{ grapheme_extract_count_iter - grapheme iterator for grapheme_extract COUNT */
-inline int32_t
+static inline int32_t
grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len)
{
int pos = 0, next_pos = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment