Skip to content

Commit c9836b0

Browse files
committed
streams: use type size_t instead of type unsigned int
1 parent 841afdc commit c9836b0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main/streams/streams.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,11 +1903,9 @@ void php_shutdown_stream_wrappers(int module_number)
19031903
/* Validate protocol scheme names during registration
19041904
* Must conform to /^[a-zA-Z0-9+.-]+$/
19051905
*/
1906-
static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_len)
1906+
static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, size_t protocol_len)
19071907
{
1908-
unsigned int i;
1909-
1910-
for(i = 0; i < protocol_len; i++) {
1908+
for (size_t i = 0; i < protocol_len; i++) {
19111909
if (!isalnum((int)protocol[i]) &&
19121910
protocol[i] != '+' &&
19131911
protocol[i] != '-' &&

0 commit comments

Comments
 (0)