Skip to content

Commit e75fba2

Browse files
authored
Update url.c
1 parent 9b5f44f commit e75fba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/standard/url.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ static void php_str_to_utf8(const char *str, size_t len)
6060
*d++ = *s++;
6161
} else {
6262
/* Convert non-ASCII bytes to UTF-8 */
63-
unsigned int codepoint = *s++;
64-
*d++ = 0xEF; *d++ = 0xBF; *d++ = 0xBD;
63+
*d++ = 0xEF;
64+
*d++ = 0xBF;
65+
*d++ = 0xBD;
66+
s++;
6567
}
6668
}
6769
zend_string_release(utf8);

0 commit comments

Comments
 (0)