@@ -560,7 +560,7 @@ PHP_FUNCTION(inet_pton)
560560 char buffer [17 ];
561561
562562 ZEND_PARSE_PARAMETERS_START (1 , 1 )
563- Z_PARAM_STRING (address , address_len )
563+ Z_PARAM_PATH (address , address_len )
564564 ZEND_PARSE_PARAMETERS_END ();
565565
566566 memset (buffer , 0 , sizeof (buffer ));
@@ -592,7 +592,7 @@ PHP_FUNCTION(ip2long)
592592 struct in_addr ip ;
593593
594594 ZEND_PARSE_PARAMETERS_START (1 , 1 )
595- Z_PARAM_STRING (addr , addr_len )
595+ Z_PARAM_PATH (addr , addr_len )
596596 ZEND_PARSE_PARAMETERS_END ();
597597
598598 if (addr_len == 0 || inet_pton (AF_INET , addr , & ip ) != 1 ) {
@@ -2168,8 +2168,8 @@ PHP_FUNCTION(getservbyname)
21682168 struct servent * serv ;
21692169
21702170 ZEND_PARSE_PARAMETERS_START (2 , 2 )
2171- Z_PARAM_STR (name )
2172- Z_PARAM_STRING (proto , proto_len )
2171+ Z_PARAM_PATH_STR (name )
2172+ Z_PARAM_PATH (proto , proto_len )
21732173 ZEND_PARSE_PARAMETERS_END ();
21742174
21752175
@@ -2212,7 +2212,7 @@ PHP_FUNCTION(getservbyport)
22122212
22132213 ZEND_PARSE_PARAMETERS_START (2 , 2 )
22142214 Z_PARAM_LONG (port )
2215- Z_PARAM_STRING (proto , proto_len )
2215+ Z_PARAM_PATH (proto , proto_len )
22162216 ZEND_PARSE_PARAMETERS_END ();
22172217
22182218 serv = getservbyport (htons ((unsigned short ) port ), proto );
@@ -2239,7 +2239,7 @@ PHP_FUNCTION(getprotobyname)
22392239 struct protoent * ent ;
22402240
22412241 ZEND_PARSE_PARAMETERS_START (1 , 1 )
2242- Z_PARAM_STRING (name , name_len )
2242+ Z_PARAM_PATH (name , name_len )
22432243 ZEND_PARSE_PARAMETERS_END ();
22442244
22452245 ent = getprotobyname (name );
0 commit comments