Lines Matching refs:protocol

1671 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_le…  in php_stream_wrapper_scheme_validate()  argument
1676 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1677 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1678 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1679 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1688 PHPAPI int php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *wrapper) in php_register_url_stream_wrapper() argument
1690 unsigned int protocol_len = (unsigned int)strlen(protocol); in php_register_url_stream_wrapper()
1694 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1698 str = zend_string_init_interned(protocol, protocol_len, 1); in php_register_url_stream_wrapper()
1704 PHPAPI int php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1706 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1717 PHPAPI int php_register_url_stream_wrapper_volatile(zend_string *protocol, php_stream_wrapper *wrap… in php_register_url_stream_wrapper_volatile() argument
1719 if (php_stream_wrapper_scheme_validate(ZSTR_VAL(protocol), ZSTR_LEN(protocol)) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1727 return zend_hash_add_ptr(FG(stream_wrappers), protocol, wrapper) ? SUCCESS : FAILURE; in php_register_url_stream_wrapper_volatile()
1730 PHPAPI int php_unregister_url_stream_wrapper_volatile(zend_string *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1736 return zend_hash_del(FG(stream_wrappers), protocol); in php_unregister_url_stream_wrapper_volatile()
1745 const char *p, *protocol = NULL; local
1761 protocol = path;
1764 if (protocol) {
1765 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1766 char *tmp = estrndup(protocol, n);
1775 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1780 protocol = NULL;
1786 if (!protocol || !strncasecmp(protocol, "file", n)) {
1790 if (protocol) {
1858 … "%.*s:// wrapper is disabled in the server configuration by allow_url_fopen=0", (int)n, protocol);
1860 …%.*s:// wrapper is disabled in the server configuration by allow_url_include=0", (int)n, protocol);