Lines Matching refs:protocol

1737 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_le…  in php_stream_wrapper_scheme_validate()  argument
1742 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1743 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1744 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1745 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1754 PHPAPI int php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *wrapper) in php_register_url_stream_wrapper() argument
1756 unsigned int protocol_len = (unsigned int)strlen(protocol); in php_register_url_stream_wrapper()
1760 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1764 str = zend_string_init_interned(protocol, protocol_len, 1); in php_register_url_stream_wrapper()
1770 PHPAPI int php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1772 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1783 PHPAPI int php_register_url_stream_wrapper_volatile(zend_string *protocol, php_stream_wrapper *wrap… in php_register_url_stream_wrapper_volatile() argument
1785 if (php_stream_wrapper_scheme_validate(ZSTR_VAL(protocol), ZSTR_LEN(protocol)) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1793 return zend_hash_add_ptr(FG(stream_wrappers), protocol, wrapper) ? SUCCESS : FAILURE; in php_register_url_stream_wrapper_volatile()
1796 PHPAPI int php_unregister_url_stream_wrapper_volatile(zend_string *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1802 return zend_hash_del(FG(stream_wrappers), protocol); in php_unregister_url_stream_wrapper_volatile()
1811 const char *p, *protocol = NULL; local
1827 protocol = path;
1830 if (protocol) {
1831 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1832 char *tmp = estrndup(protocol, n);
1841 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1846 protocol = NULL;
1852 if (!protocol || !strncasecmp(protocol, "file", n)) {
1856 if (protocol) {
1924 … "%.*s:// wrapper is disabled in the server configuration by allow_url_fopen=0", (int)n, protocol);
1926 …%.*s:// wrapper is disabled in the server configuration by allow_url_include=0", (int)n, protocol);