Lines Matching refs:protocol
28 PHPAPI int php_stream_xport_register(const char *protocol, php_stream_transport_factory factory) in php_stream_xport_register() argument
30 zend_string *str = zend_string_init_interned(protocol, strlen(protocol), 1); in php_stream_xport_register()
37 PHPAPI int php_stream_xport_unregister(const char *protocol) in php_stream_xport_unregister() argument
39 return zend_hash_str_del(&xport_hash, protocol, strlen(protocol)); in php_stream_xport_unregister()
62 const char *p, *protocol, *orig_path = NULL; in _php_stream_xport_create() local
103 protocol = name; in _php_stream_xport_create()
107 protocol = "tcp"; in _php_stream_xport_create()
111 if (protocol) { in _php_stream_xport_create()
112 if (NULL == (factory = zend_hash_str_find_ptr(&xport_hash, protocol, n))) { in _php_stream_xport_create()
117 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); in _php_stream_xport_create()
132 stream = (factory)(protocol, n, in _php_stream_xport_create()