Lines Matching refs:zv
496 void to_zval_read_int(const char *data, zval *zv, res_context *ctx) in to_zval_read_int() argument
501 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_int()
503 static void to_zval_read_net_uint16(const char *data, zval *zv, res_context *ctx) in to_zval_read_net_uint16() argument
508 ZVAL_LONG(zv, (zend_long)ntohs(ival)); in to_zval_read_net_uint16()
510 static void to_zval_read_sa_family(const char *data, zval *zv, res_context *ctx) in to_zval_read_sa_family() argument
515 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_sa_family()
518 static void to_zval_read_unsigned(const char *data, zval *zv, res_context *ctx) in to_zval_read_unsigned() argument
523 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_unsigned()
525 static void to_zval_read_uint32(const char *data, zval *zv, res_context *ctx) in to_zval_read_uint32() argument
530 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_uint32()
534 static void to_zval_read_pid_t(const char *data, zval *zv, res_context *ctx) in to_zval_read_pid_t() argument
539 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_pid_t()
541 static void to_zval_read_uid_t(const char *data, zval *zv, res_context *ctx) in to_zval_read_uid_t() argument
546 ZVAL_LONG(zv, (zend_long)ival); in to_zval_read_uid_t()
569 static void to_zval_read_sin_addr(const char *data, zval *zv, res_context *ctx) in to_zval_read_sin_addr() argument
576 ZVAL_NEW_STR(zv, str); in to_zval_read_sin_addr()
578 if (inet_ntop(AF_INET, addr, Z_STRVAL_P(zv), size) == NULL) { in to_zval_read_sin_addr()
584 Z_STRLEN_P(zv) = strlen(Z_STRVAL_P(zv)); in to_zval_read_sin_addr()
596 static void to_zval_read_sockaddr_in(const char *data, zval *zv, res_context *ctx) in to_zval_read_sockaddr_in() argument
598 to_zval_read_aggregation(data, zv, descriptors_sockaddr_in, ctx); in to_zval_read_sockaddr_in()
619 static void to_zval_read_sin6_addr(const char *data, zval *zv, res_context *ctx) in to_zval_read_sin6_addr() argument
627 ZVAL_NEW_STR(zv, str); in to_zval_read_sin6_addr()
629 if (inet_ntop(AF_INET6, addr, Z_STRVAL_P(zv), size) == NULL) { in to_zval_read_sin6_addr()
635 Z_STRLEN_P(zv) = strlen(Z_STRVAL_P(zv)); in to_zval_read_sin6_addr()
649 static void to_zval_read_sockaddr_in6(const char *data, zval *zv, res_context *ctx) in to_zval_read_sockaddr_in6() argument
651 to_zval_read_aggregation(data, zv, descriptors_sockaddr_in6, ctx); in to_zval_read_sockaddr_in6()
681 static void to_zval_read_sun_path(const char *data, zval *zv, res_context *ctx) { in to_zval_read_sun_path() argument
691 ZVAL_STRINGL(zv, saddr->sun_path, nul_pos - (char*)&saddr->sun_path); in to_zval_read_sun_path()
702 static void to_zval_read_sockaddr_un(const char *data, zval *zv, res_context *ctx) in to_zval_read_sockaddr_un() argument
704 to_zval_read_aggregation(data, zv, descriptors_sockaddr_un, ctx); in to_zval_read_sockaddr_un()
804 static void to_zval_read_sockaddr_aux(const char *sockaddr_c, zval *zv, res_context *ctx) in to_zval_read_sockaddr_aux() argument
809 ZVAL_NULL(zv); in to_zval_read_sockaddr_aux()
813 array_init(zv); in to_zval_read_sockaddr_aux()
817 to_zval_read_sockaddr_in(sockaddr_c, zv, ctx); in to_zval_read_sockaddr_aux()
822 to_zval_read_sockaddr_in6(sockaddr_c, zv, ctx); in to_zval_read_sockaddr_aux()
827 to_zval_read_sockaddr_un(sockaddr_c, zv, ctx); in to_zval_read_sockaddr_aux()
974 static void to_zval_read_cmsg_data(const char *cmsghdr_c, zval *zv, res_context *ctx) in to_zval_read_cmsg_data() argument
1001 entry->to_array((const char *)CMSG_DATA(cmsg), zv, ctx); in to_zval_read_cmsg_data()
1005 static void to_zval_read_control(const char *cmsghdr_c, zval *zv, res_context *ctx) in to_zval_read_control() argument
1015 array_init_size(zv, 3); in to_zval_read_control()
1016 to_zval_read_aggregation(cmsghdr_c, zv, descriptors, ctx); in to_zval_read_control()
1018 static void to_zval_read_control_array(const char *msghdr_c, zval *zv, res_context *ctx) in to_zval_read_control_array() argument
1026 array_init(zv); in to_zval_read_control_array()
1034 elem = zend_hash_next_index_insert(Z_ARRVAL_P(zv), &tmp); in to_zval_read_control_array()
1059 static void to_zval_read_name(const char *sockaddr_p, zval *zv, res_context *ctx) in to_zval_read_name() argument
1063 ZVAL_NULL(zv); in to_zval_read_name()
1065 to_zval_read_sockaddr_aux(name, zv, ctx); in to_zval_read_name()
1198 static void to_zval_read_iov(const char *msghdr_c, zval *zv, res_context *ctx) in to_zval_read_iov() argument
1210 array_init_size(zv, (uint32_t)iovlen); in to_zval_read_iov()
1227 add_next_index_zval(zv, &elem); in to_zval_read_iov()
1231 void to_zval_read_msghdr(const char *msghdr_c, zval *zv, res_context *ctx) in to_zval_read_msghdr() argument
1241 array_init_size(zv, 4); in to_zval_read_msghdr()
1243 to_zval_read_aggregation(msghdr_c, zv, descriptors, ctx); in to_zval_read_msghdr()
1248 static void from_zval_write_ifindex(const zval *zv, char *uinteger, ser_context *ctx) in from_zval_write_ifindex() argument
1252 if (Z_TYPE_P(zv) == IS_LONG) { in from_zval_write_ifindex()
1253 …if (Z_LVAL_P(zv) < 0 || (zend_ulong)Z_LVAL_P(zv) > UINT_MAX) { /* allow 0 (unspecified interface) … in from_zval_write_ifindex()
1255 "larger than %u; given " ZEND_LONG_FMT, UINT_MAX, Z_LVAL_P(zv)); in from_zval_write_ifindex()
1257 ret = (unsigned)Z_LVAL_P(zv); in from_zval_write_ifindex()
1262 str = zval_get_tmp_string((zval *) zv, &tmp_str); in from_zval_write_ifindex()
1312 void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx) in to_zval_read_in6_pktinfo() argument
1314 array_init_size(zv, 2); in to_zval_read_in6_pktinfo()
1316 to_zval_read_aggregation(data, zv, descriptors_in6_pktinfo, ctx); in to_zval_read_in6_pktinfo()
1350 void to_zval_read_ucred(const char *data, zval *zv, res_context *ctx) in to_zval_read_ucred() argument
1352 array_init_size(zv, 3); in to_zval_read_ucred()
1354 to_zval_read_aggregation(data, zv, descriptors_ucred, ctx); in to_zval_read_ucred()
1418 void to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx) in to_zval_read_fd_array() argument
1441 array_init_size(zv, num_elems); in to_zval_read_fd_array()
1466 add_next_index_zval(zv, &elem); in to_zval_read_fd_array()
1525 struct err_s *err, zval *zv) in to_zval_run_conversions() argument
1543 ZVAL_NULL(zv); in to_zval_run_conversions()
1545 reader(structure, zv, &ctx); in to_zval_run_conversions()
1548 zval_ptr_dtor(zv); in to_zval_run_conversions()
1549 ZVAL_UNDEF(zv); in to_zval_run_conversions()
1556 return Z_ISUNDEF_P(zv)? NULL : zv; in to_zval_run_conversions()