com php-src: fix TSRM: ext/standard/dns.c
| From: | Stanislav Malyshev | Date: | Sun, 01 Feb 2015 07:34:14 +0000 |
| Subject: | com php-src: fix TSRM: ext/standard/dns.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84526@lists.php.net to get a copy of this message | ||
Commit: 94d6cb4a78956ac1505dc4141f052f7146114d74
Author: Stanislav Malyshev <stas@php.net> Sat, 31 Jan 2015 23:34:14 -0800
Parents: b30a6d6018705e0a9d345192eba8125ff854c167
Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=94d6cb4a78956ac1505dc4141f052f7146114d74
Log:
fix TSRM
Changed paths:
M ext/standard/dns.c
Diff:
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 7b5dba0..d268609 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -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;
}