From c9836b03ceff5bf5d8c8cd9e1aaa337ae622d5e5 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sat, 12 Jul 2025 12:09:49 +0100 Subject: [PATCH] streams: use type size_t instead of type unsigned int --- main/streams/streams.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main/streams/streams.c b/main/streams/streams.c index fddca6f84a9..0e1e2683196 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1903,11 +1903,9 @@ void php_shutdown_stream_wrappers(int module_number) /* Validate protocol scheme names during registration * Must conform to /^[a-zA-Z0-9+.-]+$/ */ -static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_len) +static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, size_t protocol_len) { - unsigned int i; - - for(i = 0; i < protocol_len; i++) { + for (size_t i = 0; i < protocol_len; i++) { if (!isalnum((int)protocol[i]) && protocol[i] != '+' && protocol[i] != '-' &&