We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841afdc commit c9836b0Copy full SHA for c9836b0
main/streams/streams.c
@@ -1903,11 +1903,9 @@ void php_shutdown_stream_wrappers(int module_number)
1903
/* Validate protocol scheme names during registration
1904
* Must conform to /^[a-zA-Z0-9+.-]+$/
1905
*/
1906
-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)
1907
{
1908
- unsigned int i;
1909
-
1910
- for(i = 0; i < protocol_len; i++) {
+ for (size_t i = 0; i < protocol_len; i++) {
1911
if (!isalnum((int)protocol[i]) &&
1912
protocol[i] != '+' &&
1913
protocol[i] != '-' &&
0 commit comments