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 = NULL; in _php_stream_xport_create() local
102 protocol = name; in _php_stream_xport_create()
106 protocol = "tcp"; in _php_stream_xport_create()
110 if (protocol) { in _php_stream_xport_create()
111 if (NULL == (factory = zend_hash_str_find_ptr(&xport_hash, protocol, n))) { in _php_stream_xport_create()
116 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); in _php_stream_xport_create()
131 stream = (factory)(protocol, n, in _php_stream_xport_create()