Lines Matching refs:ret
95 php_url *ret = ecalloc(1, sizeof(php_url)); in php_url_parse_ex2() local
123 ret->scheme = zend_string_init(s, (e - s), 0); in php_url_parse_ex2()
124 php_replace_controlchars(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
125 return ret; in php_url_parse_ex2()
145 ret->scheme = zend_string_init(s, (e-s), 0); in php_url_parse_ex2()
146 php_replace_controlchars(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
151 ret->scheme = zend_string_init(s, (e-s), 0); in php_url_parse_ex2()
152 php_replace_controlchars(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
156 if (zend_string_equals_literal_ci(ret->scheme, "file")) { in php_url_parse_ex2()
189 ret->port = (unsigned short) port; in php_url_parse_ex2()
194 php_url_free(ret); in php_url_parse_ex2()
198 php_url_free(ret); in php_url_parse_ex2()
217 ret->user = zend_string_init(s, (pp-s), 0); in php_url_parse_ex2()
218 php_replace_controlchars(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2()
221 ret->pass = zend_string_init(pp, (p-pp), 0); in php_url_parse_ex2()
222 php_replace_controlchars(ZSTR_VAL(ret->pass), ZSTR_LEN(ret->pass)); in php_url_parse_ex2()
224 ret->user = zend_string_init(s, (p-s), 0); in php_url_parse_ex2()
225 php_replace_controlchars(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2()
242 if (!ret->port) { in php_url_parse_ex2()
245 php_url_free(ret); in php_url_parse_ex2()
255 ret->port = (unsigned short)port; in php_url_parse_ex2()
257 php_url_free(ret); in php_url_parse_ex2()
269 php_url_free(ret); in php_url_parse_ex2()
273 ret->host = zend_string_init(s, (p-s), 0); in php_url_parse_ex2()
274 php_replace_controlchars(ZSTR_VAL(ret->host), ZSTR_LEN(ret->host)); in php_url_parse_ex2()
277 return ret; in php_url_parse_ex2()
289 ret->fragment = zend_string_init(p, (e - p), 0); in php_url_parse_ex2()
290 php_replace_controlchars(ZSTR_VAL(ret->fragment), ZSTR_LEN(ret->fragment)); in php_url_parse_ex2()
292 ret->fragment = ZSTR_EMPTY_ALLOC(); in php_url_parse_ex2()
301 ret->query = zend_string_init(p, (e - p), 0); in php_url_parse_ex2()
302 php_replace_controlchars(ZSTR_VAL(ret->query), ZSTR_LEN(ret->query)); in php_url_parse_ex2()
304 ret->query = ZSTR_EMPTY_ALLOC(); in php_url_parse_ex2()
310 ret->path = zend_string_init(s, (e - s), 0); in php_url_parse_ex2()
311 php_replace_controlchars(ZSTR_VAL(ret->path), ZSTR_LEN(ret->path)); in php_url_parse_ex2()
314 return ret; in php_url_parse_ex2()