@@ -59,7 +59,7 @@ static const char *_php_source_op_to_string(enum source_op sop);
5959static int _php_source_op_to_ipv4_op (enum source_op sop );
6060#endif
6161
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 )
6363{
6464#if HAVE_IF_NAMETOINDEX
6565 unsigned int ind ;
@@ -81,7 +81,7 @@ int php_string_to_if_index(const char *val, unsigned *out)
8181#endif
8282}
8383
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 )
8585{
8686 int ret ;
8787
@@ -104,7 +104,7 @@ static int php_get_if_index_from_zval(zval *val, unsigned *out)
104104
105105
106106
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 ,
108108 php_socket * sock , unsigned int * if_index )
109109{
110110 zval * val ;
@@ -117,7 +117,7 @@ static int php_get_if_index_from_array(const HashTable *ht, const char *key,
117117 return php_get_if_index_from_zval (val , if_index );
118118}
119119
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 ,
121121 php_socket * sock , php_sockaddr_storage * ss , socklen_t * ss_len )
122122{
123123 zval * val ;
@@ -136,7 +136,7 @@ static int php_get_address_from_array(const HashTable *ht, const char *key,
136136 return SUCCESS ;
137137}
138138
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 )
140140{
141141 HashTable * opt_ht ;
142142 unsigned int if_index ;
@@ -616,7 +616,7 @@ static int _php_source_op_to_ipv4_op(enum source_op sop)
616616#endif /* HAS_MCAST_EXT */
617617
618618#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 )
620620{
621621 MIB_IPADDRTABLE * addr_table ;
622622 ULONG size ;
@@ -659,7 +659,7 @@ int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_add
659659 return FAILURE ;
660660}
661661
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 )
663663{
664664 MIB_IPADDRTABLE * addr_table ;
665665 ULONG size ;
@@ -709,7 +709,7 @@ int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *i
709709
710710#else
711711
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 )
713713{
714714 struct ifreq if_req ;
715715
@@ -746,7 +746,7 @@ int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_add
746746 return SUCCESS ;
747747}
748748
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 )
750750{
751751 struct ifconf if_conf = {0 };
752752 char * buf = NULL ,
0 commit comments