Lines Matching refs:protocol

1723 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_le…  in php_stream_wrapper_scheme_validate()  argument
1728 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1729 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1730 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1731 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1740 PHPAPI int php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *wrapper) in php_register_url_stream_wrapper() argument
1742 unsigned int protocol_len = (unsigned int)strlen(protocol); in php_register_url_stream_wrapper()
1746 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1750 str = zend_string_init_interned(protocol, protocol_len, 1); in php_register_url_stream_wrapper()
1756 PHPAPI int php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1758 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1769 PHPAPI int php_register_url_stream_wrapper_volatile(zend_string *protocol, php_stream_wrapper *wrap… in php_register_url_stream_wrapper_volatile() argument
1771 if (php_stream_wrapper_scheme_validate(ZSTR_VAL(protocol), ZSTR_LEN(protocol)) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1779 return zend_hash_add_ptr(FG(stream_wrappers), protocol, wrapper) ? SUCCESS : FAILURE; in php_register_url_stream_wrapper_volatile()
1782 PHPAPI int php_unregister_url_stream_wrapper_volatile(zend_string *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1788 return zend_hash_del(FG(stream_wrappers), protocol); in php_unregister_url_stream_wrapper_volatile()
1797 const char *p, *protocol = NULL; local
1813 protocol = path;
1816 if (protocol) {
1817 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1818 char *tmp = estrndup(protocol, n);
1827 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1832 protocol = NULL;
1838 if (!protocol || !strncasecmp(protocol, "file", n)) {
1842 if (protocol) {
1910 … "%.*s:// wrapper is disabled in the server configuration by allow_url_fopen=0", (int)n, protocol);
1912 …%.*s:// wrapper is disabled in the server configuration by allow_url_include=0", (int)n, protocol);