@@ -578,7 +578,7 @@ PHP_FUNCTION(inet_pton)
578578 char buffer [17 ];
579579
580580 ZEND_PARSE_PARAMETERS_START (1 , 1 )
581- Z_PARAM_STRING (address , address_len )
581+ Z_PARAM_PATH (address , address_len )
582582 ZEND_PARSE_PARAMETERS_END ();
583583
584584 memset (buffer , 0 , sizeof (buffer ));
@@ -615,7 +615,7 @@ PHP_FUNCTION(ip2long)
615615#endif
616616
617617 ZEND_PARSE_PARAMETERS_START (1 , 1 )
618- Z_PARAM_STRING (addr , addr_len )
618+ Z_PARAM_PATH (addr , addr_len )
619619 ZEND_PARSE_PARAMETERS_END ();
620620
621621#ifdef HAVE_INET_PTON
@@ -2214,8 +2214,8 @@ PHP_FUNCTION(getservbyname)
22142214 struct servent * serv ;
22152215
22162216 ZEND_PARSE_PARAMETERS_START (2 , 2 )
2217- Z_PARAM_STR (name )
2218- Z_PARAM_STRING (proto , proto_len )
2217+ Z_PARAM_PATH_STR (name )
2218+ Z_PARAM_PATH (proto , proto_len )
22192219 ZEND_PARSE_PARAMETERS_END ();
22202220
22212221
@@ -2258,7 +2258,7 @@ PHP_FUNCTION(getservbyport)
22582258
22592259 ZEND_PARSE_PARAMETERS_START (2 , 2 )
22602260 Z_PARAM_LONG (port )
2261- Z_PARAM_STRING (proto , proto_len )
2261+ Z_PARAM_PATH (proto , proto_len )
22622262 ZEND_PARSE_PARAMETERS_END ();
22632263
22642264 serv = getservbyport (htons ((unsigned short ) port ), proto );
@@ -2285,7 +2285,7 @@ PHP_FUNCTION(getprotobyname)
22852285 struct protoent * ent ;
22862286
22872287 ZEND_PARSE_PARAMETERS_START (1 , 1 )
2288- Z_PARAM_STRING (name , name_len )
2288+ Z_PARAM_PATH (name , name_len )
22892289 ZEND_PARSE_PARAMETERS_END ();
22902290
22912291 ent = getprotobyname (name );
0 commit comments