@@ -561,7 +561,7 @@ PHP_FUNCTION(inet_pton)
561561 char buffer [17 ];
562562
563563 ZEND_PARSE_PARAMETERS_START (1 , 1 )
564- Z_PARAM_STRING (address , address_len )
564+ Z_PARAM_PATH (address , address_len )
565565 ZEND_PARSE_PARAMETERS_END ();
566566
567567 memset (buffer , 0 , sizeof (buffer ));
@@ -593,7 +593,7 @@ PHP_FUNCTION(ip2long)
593593 struct in_addr ip ;
594594
595595 ZEND_PARSE_PARAMETERS_START (1 , 1 )
596- Z_PARAM_STRING (addr , addr_len )
596+ Z_PARAM_PATH (addr , addr_len )
597597 ZEND_PARSE_PARAMETERS_END ();
598598
599599 if (addr_len == 0 || inet_pton (AF_INET , addr , & ip ) != 1 ) {
@@ -2139,8 +2139,8 @@ PHP_FUNCTION(getservbyname)
21392139 struct servent * serv ;
21402140
21412141 ZEND_PARSE_PARAMETERS_START (2 , 2 )
2142- Z_PARAM_STR (name )
2143- Z_PARAM_STRING (proto , proto_len )
2142+ Z_PARAM_PATH_STR (name )
2143+ Z_PARAM_PATH (proto , proto_len )
21442144 ZEND_PARSE_PARAMETERS_END ();
21452145
21462146
@@ -2183,7 +2183,7 @@ PHP_FUNCTION(getservbyport)
21832183
21842184 ZEND_PARSE_PARAMETERS_START (2 , 2 )
21852185 Z_PARAM_LONG (port )
2186- Z_PARAM_STRING (proto , proto_len )
2186+ Z_PARAM_PATH (proto , proto_len )
21872187 ZEND_PARSE_PARAMETERS_END ();
21882188
21892189 serv = getservbyport (htons ((unsigned short ) port ), proto );
@@ -2210,7 +2210,7 @@ PHP_FUNCTION(getprotobyname)
22102210 struct protoent * ent ;
22112211
22122212 ZEND_PARSE_PARAMETERS_START (1 , 1 )
2213- Z_PARAM_STRING (name , name_len )
2213+ Z_PARAM_PATH (name , name_len )
22142214 ZEND_PARSE_PARAMETERS_END ();
22152215
22162216 ent = getprotobyname (name );
0 commit comments