@@ -59,7 +59,7 @@ static const char *_php_source_op_to_string(enum source_op sop);
59
59
static int _php_source_op_to_ipv4_op (enum source_op sop );
60
60
#endif
61
61
62
- int php_string_to_if_index (const char * val , unsigned * out )
62
+ zend_result php_string_to_if_index (const char * val , unsigned * out )
63
63
{
64
64
#if HAVE_IF_NAMETOINDEX
65
65
unsigned int ind ;
@@ -81,7 +81,7 @@ int php_string_to_if_index(const char *val, unsigned *out)
81
81
#endif
82
82
}
83
83
84
- static int php_get_if_index_from_zval (zval * val , unsigned * out )
84
+ static zend_result php_get_if_index_from_zval (zval * val , unsigned * out )
85
85
{
86
86
int ret ;
87
87
@@ -104,7 +104,7 @@ static int php_get_if_index_from_zval(zval *val, unsigned *out)
104
104
105
105
106
106
107
- static int php_get_if_index_from_array (const HashTable * ht , const char * key ,
107
+ static zend_result php_get_if_index_from_array (const HashTable * ht , const char * key ,
108
108
php_socket * sock , unsigned int * if_index )
109
109
{
110
110
zval * val ;
@@ -117,7 +117,7 @@ static int php_get_if_index_from_array(const HashTable *ht, const char *key,
117
117
return php_get_if_index_from_zval (val , if_index );
118
118
}
119
119
120
- static int php_get_address_from_array (const HashTable * ht , const char * key ,
120
+ static zend_result php_get_address_from_array (const HashTable * ht , const char * key ,
121
121
php_socket * sock , php_sockaddr_storage * ss , socklen_t * ss_len )
122
122
{
123
123
zval * val ;
@@ -136,7 +136,7 @@ static int php_get_address_from_array(const HashTable *ht, const char *key,
136
136
return SUCCESS ;
137
137
}
138
138
139
- static int php_do_mcast_opt (php_socket * php_sock , int level , int optname , zval * arg4 )
139
+ static zend_result php_do_mcast_opt (php_socket * php_sock , int level , int optname , zval * arg4 )
140
140
{
141
141
HashTable * opt_ht ;
142
142
unsigned int if_index ;
@@ -616,7 +616,7 @@ static int _php_source_op_to_ipv4_op(enum source_op sop)
616
616
#endif /* HAS_MCAST_EXT */
617
617
618
618
#ifdef PHP_WIN32
619
- int php_if_index_to_addr4 (unsigned if_index , php_socket * php_sock , struct in_addr * out_addr )
619
+ zend_result php_if_index_to_addr4 (unsigned if_index , php_socket * php_sock , struct in_addr * out_addr )
620
620
{
621
621
MIB_IPADDRTABLE * addr_table ;
622
622
ULONG size ;
@@ -659,7 +659,7 @@ int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_add
659
659
return FAILURE ;
660
660
}
661
661
662
- int php_add4_to_if_index (struct in_addr * addr , php_socket * php_sock , unsigned * if_index )
662
+ zend_result php_add4_to_if_index (struct in_addr * addr , php_socket * php_sock , unsigned * if_index )
663
663
{
664
664
MIB_IPADDRTABLE * addr_table ;
665
665
ULONG size ;
@@ -709,7 +709,7 @@ int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *i
709
709
710
710
#else
711
711
712
- int php_if_index_to_addr4 (unsigned if_index , php_socket * php_sock , struct in_addr * out_addr )
712
+ zend_result php_if_index_to_addr4 (unsigned if_index , php_socket * php_sock , struct in_addr * out_addr )
713
713
{
714
714
struct ifreq if_req ;
715
715
@@ -746,7 +746,7 @@ int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_add
746
746
return SUCCESS ;
747
747
}
748
748
749
- int php_add4_to_if_index (struct in_addr * addr , php_socket * php_sock , unsigned * if_index )
749
+ zend_result php_add4_to_if_index (struct in_addr * addr , php_socket * php_sock , unsigned * if_index )
750
750
{
751
751
struct ifconf if_conf = {0 };
752
752
char * buf = NULL ,
0 commit comments