Lines Matching refs:protocol

1693 static inline int php_stream_wrapper_scheme_validate(char *protocol, int protocol_len)  in php_stream_wrapper_scheme_validate()  argument
1698 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1699 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1700 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1701 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1710 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) in php_register_url_stream_wrapper() argument
1712 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper()
1714 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1718 …return zend_hash_add(&url_stream_wrappers_hash, protocol, protocol_len + 1, &wrapper, sizeof(wrapp… in php_register_url_stream_wrapper()
1721 PHPAPI int php_unregister_url_stream_wrapper(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper()
1723 return zend_hash_del(&url_stream_wrappers_hash, protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper()
1736 PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSR… in php_register_url_stream_wrapper_volatile() argument
1738 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper_volatile()
1740 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1748 …return zend_hash_add(FG(stream_wrappers), protocol, protocol_len + 1, &wrapper, sizeof(wrapper), N… in php_register_url_stream_wrapper_volatile()
1751 PHPAPI int php_unregister_url_stream_wrapper_volatile(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper_volatile()
1757 return zend_hash_del(FG(stream_wrappers), protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper_volatile()
1766 const char *p, *protocol = NULL; local
1782 protocol = path;
1785 protocol = "compress.zlib";
1790 if (protocol) {
1791 char *tmp = estrndup(protocol, n);
1800 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1805 protocol = NULL;
1811 if (!protocol || !strncasecmp(protocol, "file", n)) {
1815 if (protocol) {
1880 char *protocol_dup = estrndup(protocol, n);