File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ PHP_FUNCTION(gethostbyname)
213
213
214
214
if (hostname_len > MAXFQDNLEN ) {
215
215
/* name too long, protect from CVE-2015-0235 */
216
- zend_argument_value_error (1 , "must be less than %d characters" , MAXFQDNLEN );
216
+ zend_argument_value_error (1 , "cannot be longer than %d characters" , MAXFQDNLEN );
217
217
RETURN_THROWS ();
218
218
}
219
219
@@ -236,7 +236,7 @@ PHP_FUNCTION(gethostbynamel)
236
236
237
237
if (hostname_len > MAXFQDNLEN ) {
238
238
/* name too long, protect from CVE-2015-0235 */
239
- zend_argument_value_error (1 , "must be less than %d characters" , MAXFQDNLEN );
239
+ zend_argument_value_error (1 , "cannot be longer than %d characters" , MAXFQDNLEN );
240
240
RETURN_THROWS ();
241
241
}
242
242
@@ -845,7 +845,7 @@ PHP_FUNCTION(dns_get_record)
845
845
}
846
846
} else {
847
847
if ((type_param < 1 ) || (type_param > 0xFFFF )) {
848
- zend_argument_value_error (2 , "must be between 1 and 65535 when Argument #5 ($raw) is true" );
848
+ zend_argument_value_error (2 , "must be between 1 and 65535 when argument #5 ($raw) is true" );
849
849
RETURN_THROWS ();
850
850
}
851
851
}
Original file line number Diff line number Diff line change 15
15
16
16
?>
17
17
--EXPECT--
18
- gethostbyname(): Argument #1 ($hostname) must be less than 255 characters
19
- gethostbynamel(): Argument #1 ($hostname) must be less than 255 characters
18
+ gethostbyname(): Argument #1 ($hostname) cannot be longer than 255 characters
19
+ gethostbynamel(): Argument #1 ($hostname) cannot be longer than 255 characters
You can’t perform that action at this time.
0 commit comments