Lines Matching refs:protocol
1890 static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, unsigned int pro… in php_stream_wrapper_scheme_validate() argument
1895 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1896 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1897 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1898 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1907 PHPAPI zend_result php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *… in php_register_url_stream_wrapper() argument
1909 size_t protocol_len = strlen(protocol); in php_register_url_stream_wrapper()
1913 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1917 str = zend_string_init_interned(protocol, protocol_len, 1); in php_register_url_stream_wrapper()
1923 PHPAPI zend_result php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1925 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1936 PHPAPI zend_result php_register_url_stream_wrapper_volatile(zend_string *protocol, php_stream_wrapp… in php_register_url_stream_wrapper_volatile() argument
1938 if (php_stream_wrapper_scheme_validate(ZSTR_VAL(protocol), ZSTR_LEN(protocol)) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1946 return zend_hash_add_ptr(FG(stream_wrappers), protocol, wrapper) ? SUCCESS : FAILURE; in php_register_url_stream_wrapper_volatile()
1949 PHPAPI zend_result php_unregister_url_stream_wrapper_volatile(zend_string *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1955 return zend_hash_del(FG(stream_wrappers), protocol); in php_unregister_url_stream_wrapper_volatile()
1964 const char *p, *protocol = NULL; local
1980 protocol = path;
1983 if (protocol) {
1984 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1985 char *tmp = estrndup(protocol, n);
1994 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1999 protocol = NULL;
2005 if (!protocol || !strncasecmp(protocol, "file", n)) {
2009 if (protocol) {
2077 … "%.*s:// wrapper is disabled in the server configuration by allow_url_fopen=0", (int)n, protocol);
2079 …%.*s:// wrapper is disabled in the server configuration by allow_url_include=0", (int)n, protocol);