mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
fix TSRM
This commit is contained in:
parent
b30a6d6018
commit
94d6cb4a78
@ -224,7 +224,7 @@ PHP_FUNCTION(gethostbyname)
|
||||
|
||||
if(hostname_len > MAXFQDNLEN) {
|
||||
/* name too long, protect from CVE-2015-0235 */
|
||||
php_error_docref(NULL, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
|
||||
RETURN_STRINGL(hostname, hostname_len, 1);
|
||||
}
|
||||
addr = php_gethostbyname(hostname);
|
||||
@ -249,7 +249,7 @@ PHP_FUNCTION(gethostbynamel)
|
||||
|
||||
if(hostname_len > MAXFQDNLEN) {
|
||||
/* name too long, protect from CVE-2015-0235 */
|
||||
php_error_docref(NULL, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user