Lines Matching refs:protocol

1684 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_le…  in php_stream_wrapper_scheme_validate()  argument
1689 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1690 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1691 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1692 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1701 PHPAPI int php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper) in php_register_url_stream_wrapper() argument
1703 unsigned int protocol_len = (unsigned int)strlen(protocol); in php_register_url_stream_wrapper()
1705 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1709 …return zend_hash_str_add_ptr(&url_stream_wrappers_hash, protocol, protocol_len, wrapper) ? SUCCESS… in php_register_url_stream_wrapper()
1712 PHPAPI int php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1714 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1725 PHPAPI int php_register_url_stream_wrapper_volatile(const char *protocol, php_stream_wrapper *wrapp… in php_register_url_stream_wrapper_volatile() argument
1727 unsigned int protocol_len = (unsigned int)strlen(protocol); in php_register_url_stream_wrapper_volatile()
1729 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1737 …return zend_hash_str_add_ptr(FG(stream_wrappers), protocol, protocol_len, wrapper) ? SUCCESS : FAI… in php_register_url_stream_wrapper_volatile()
1740 PHPAPI int php_unregister_url_stream_wrapper_volatile(const char *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1746 return zend_hash_str_del(FG(stream_wrappers), protocol, strlen(protocol)); in php_unregister_url_stream_wrapper_volatile()
1755 const char *p, *protocol = NULL; local
1771 protocol = path;
1774 if (protocol) {
1775 char *tmp = estrndup(protocol, n);
1784 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1789 protocol = NULL;
1795 if (!protocol || !strncasecmp(protocol, "file", n)) {
1799 if (protocol) {
1866 char *protocol_dup = estrndup(protocol, n);