Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
streams: use type size_t instead of type unsigned int
  • Loading branch information
Girgias committed Jul 12, 2025
commit 95c50e492937ecfdcf9c2e8a11557e2eaa45dcee
6 changes: 2 additions & 4 deletions main/streams/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] != '-' &&
Expand Down