Searched refs:protocol_len (Results 1 - 2 of 2) sorted by relevance

/PHP_5_6/main/streams/
H A Duserspace.c522 int protocol_len, classname_len; local
527 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &protocol, &protocol_len, &classname, &classname_len, &flags) == FAILURE) {
532 uwrap->protoname = estrndup(protocol, protocol_len);
546 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol, protocol_len + 1)) {
567 int protocol_len; local
569 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &protocol, &protocol_len) == FAILURE) {
588 int protocol_len; local
592 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &protocol, &protocol_len) == FAILURE) {
602 if ((zend_hash_find(global_wrapper_hash, protocol, protocol_len + 1, (void**)&wrapperpp) == FAILURE) || !wrapperpp) {
H A Dstreams.c1688 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_len) argument
1692 for(i = 0; i < protocol_len; i++) {
1707 unsigned int protocol_len = strlen(protocol); local
1709 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) {
1713 return zend_hash_add(&url_stream_wrappers_hash, protocol, protocol_len + 1, &wrapper, sizeof(wrapper), NULL);
1733 unsigned int protocol_len = strlen(protocol); local
1735 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) {
1743 return zend_hash_add(FG(stream_wrappers), protocol, protocol_len + 1, &wrapper, sizeof(wrapper), NULL);

Completed in 35 milliseconds