Lines Matching refs:protocol

1854 static inline zend_result php_stream_wrapper_scheme_validate(const char *protocol, unsigned int pro…  in php_stream_wrapper_scheme_validate()  argument
1859 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1860 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1861 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1862 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1871 PHPAPI zend_result php_register_url_stream_wrapper(const char *protocol, const php_stream_wrapper *… in php_register_url_stream_wrapper() argument
1873 size_t protocol_len = strlen(protocol); in php_register_url_stream_wrapper()
1877 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1881 str = zend_string_init_interned(protocol, protocol_len, 1); in php_register_url_stream_wrapper()
1887 PHPAPI zend_result php_unregister_url_stream_wrapper(const char *protocol) in php_unregister_url_stream_wrapper() argument
1889 return zend_hash_str_del(&url_stream_wrappers_hash, protocol, strlen(protocol)); in php_unregister_url_stream_wrapper()
1900 PHPAPI zend_result php_register_url_stream_wrapper_volatile(zend_string *protocol, php_stream_wrapp… in php_register_url_stream_wrapper_volatile() argument
1902 if (php_stream_wrapper_scheme_validate(ZSTR_VAL(protocol), ZSTR_LEN(protocol)) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1910 return zend_hash_add_ptr(FG(stream_wrappers), protocol, wrapper) ? SUCCESS : FAILURE; in php_register_url_stream_wrapper_volatile()
1913 PHPAPI zend_result php_unregister_url_stream_wrapper_volatile(zend_string *protocol) in php_unregister_url_stream_wrapper_volatile() argument
1919 return zend_hash_del(FG(stream_wrappers), protocol); in php_unregister_url_stream_wrapper_volatile()
1928 const char *p, *protocol = NULL; local
1944 protocol = path;
1947 if (protocol) {
1948 if (NULL == (wrapper = zend_hash_str_find_ptr(wrapper_hash, protocol, n))) {
1949 char *tmp = estrndup(protocol, n);
1958 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1963 protocol = NULL;
1969 if (!protocol || !strncasecmp(protocol, "file", n)) {
1973 if (protocol) {
2041 … "%.*s:// wrapper is disabled in the server configuration by allow_url_fopen=0", (int)n, protocol);
2043 …%.*s:// wrapper is disabled in the server configuration by allow_url_include=0", (int)n, protocol);