Lines Matching refs:ret
56 zend_string *ret = zend_string_alloc(INET6_ADDRSTRLEN, 0); in php_inet_ntop() local
57 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop()
58 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
59 return ret; in php_inet_ntop()
61 zend_string_efree(ret); in php_inet_ntop()
66 zend_string *ret = zend_string_alloc(INET_ADDRSTRLEN, 0); in php_inet_ntop() local
67 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop()
68 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
69 return ret; in php_inet_ntop()
71 zend_string_efree(ret); in php_inet_ntop()
85 zend_string *ret = zend_string_alloc(NI_MAXHOST, 0); in php_inet_ntop() local
86 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop()
88 char *colon = strchr(ZSTR_VAL(ret), '%'); in php_inet_ntop()
90 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop()
91 return ret; in php_inet_ntop()
93 zend_string_efree(ret); in php_inet_ntop()