Lines Matching refs:protocol

1688 static inline int php_stream_wrapper_scheme_validate(char *protocol, int protocol_len)  in php_stream_wrapper_scheme_validate()  argument
1693 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1694 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1695 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1696 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1705 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) in php_register_url_stream_wrapper() argument
1707 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper()
1709 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1713 …return zend_hash_add(&url_stream_wrappers_hash, protocol, protocol_len + 1, &wrapper, sizeof(wrapp… in php_register_url_stream_wrapper()
1716 PHPAPI int php_unregister_url_stream_wrapper(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper()
1718 return zend_hash_del(&url_stream_wrappers_hash, protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper()
1731 PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSR… in php_register_url_stream_wrapper_volatile() argument
1733 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper_volatile()
1735 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1743 …return zend_hash_add(FG(stream_wrappers), protocol, protocol_len + 1, &wrapper, sizeof(wrapper), N… in php_register_url_stream_wrapper_volatile()
1746 PHPAPI int php_unregister_url_stream_wrapper_volatile(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper_volatile()
1752 return zend_hash_del(FG(stream_wrappers), protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper_volatile()
1761 const char *p, *protocol = NULL; local
1777 protocol = path;
1780 protocol = "compress.zlib";
1785 if (protocol) {
1786 char *tmp = estrndup(protocol, n);
1795 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1800 protocol = NULL;
1806 if (!protocol || !strncasecmp(protocol, "file", n)) {
1810 if (protocol) {
1875 char *protocol_dup = estrndup(protocol, n);