streams: use type size_t instead of type unsigned int

This commit is contained in:
Gina Peter Banyard 2025-07-12 12:09:49 +01:00
parent 841afdc486
commit c9836b03ce

View file

@ -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] != '-' &&