Lines Matching refs:protocol

1614 static inline int php_stream_wrapper_scheme_validate(char *protocol, int protocol_len)  in php_stream_wrapper_scheme_validate()  argument
1619 if (!isalnum((int)protocol[i]) && in php_stream_wrapper_scheme_validate()
1620 protocol[i] != '+' && in php_stream_wrapper_scheme_validate()
1621 protocol[i] != '-' && in php_stream_wrapper_scheme_validate()
1622 protocol[i] != '.') { in php_stream_wrapper_scheme_validate()
1631 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) in php_register_url_stream_wrapper() argument
1633 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper()
1635 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper()
1639 …return zend_hash_add(&url_stream_wrappers_hash, protocol, protocol_len + 1, &wrapper, sizeof(wrapp… in php_register_url_stream_wrapper()
1642 PHPAPI int php_unregister_url_stream_wrapper(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper()
1644 return zend_hash_del(&url_stream_wrappers_hash, protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper()
1657 PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSR… in php_register_url_stream_wrapper_volatile() argument
1659 int protocol_len = strlen(protocol); in php_register_url_stream_wrapper_volatile()
1661 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { in php_register_url_stream_wrapper_volatile()
1669 …return zend_hash_add(FG(stream_wrappers), protocol, protocol_len + 1, &wrapper, sizeof(wrapper), N… in php_register_url_stream_wrapper_volatile()
1672 PHPAPI int php_unregister_url_stream_wrapper_volatile(char *protocol TSRMLS_DC) in php_unregister_url_stream_wrapper_volatile()
1678 return zend_hash_del(FG(stream_wrappers), protocol, strlen(protocol) + 1); in php_unregister_url_stream_wrapper_volatile()
1687 const char *p, *protocol = NULL; local
1703 protocol = path;
1706 protocol = "compress.zlib";
1711 if (protocol) {
1712 char *tmp = estrndup(protocol, n);
1721 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n);
1726 protocol = NULL;
1732 if (!protocol || !strncasecmp(protocol, "file", n)) {
1736 if (protocol) {
1801 char *protocol_dup = estrndup(protocol, n);