@@ -555,7 +555,7 @@ PHP_FUNCTION(inet_pton)
555555 char buffer [17 ];
556556
557557 ZEND_PARSE_PARAMETERS_START (1 , 1 )
558- Z_PARAM_STRING (address , address_len )
558+ Z_PARAM_PATH (address , address_len )
559559 ZEND_PARSE_PARAMETERS_END ();
560560
561561 memset (buffer , 0 , sizeof (buffer ));
@@ -592,7 +592,7 @@ PHP_FUNCTION(ip2long)
592592#endif
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#ifdef HAVE_INET_PTON
@@ -2190,8 +2190,8 @@ PHP_FUNCTION(getservbyname)
21902190 struct servent * serv ;
21912191
21922192 ZEND_PARSE_PARAMETERS_START (2 , 2 )
2193- Z_PARAM_STR (name )
2194- Z_PARAM_STRING (proto , proto_len )
2193+ Z_PARAM_PATH_STR (name )
2194+ Z_PARAM_PATH (proto , proto_len )
21952195 ZEND_PARSE_PARAMETERS_END ();
21962196
21972197
@@ -2234,7 +2234,7 @@ PHP_FUNCTION(getservbyport)
22342234
22352235 ZEND_PARSE_PARAMETERS_START (2 , 2 )
22362236 Z_PARAM_LONG (port )
2237- Z_PARAM_STRING (proto , proto_len )
2237+ Z_PARAM_PATH (proto , proto_len )
22382238 ZEND_PARSE_PARAMETERS_END ();
22392239
22402240 serv = getservbyport (htons ((unsigned short ) port ), proto );
@@ -2261,7 +2261,7 @@ PHP_FUNCTION(getprotobyname)
22612261 struct protoent * ent ;
22622262
22632263 ZEND_PARSE_PARAMETERS_START (1 , 1 )
2264- Z_PARAM_STRING (name , name_len )
2264+ Z_PARAM_PATH (name , name_len )
22652265 ZEND_PARSE_PARAMETERS_END ();
22662266
22672267 ent = getprotobyname (name );
0 commit comments