diff options
author | Stanislav Malyshev <stas@php.net> | 2015-01-31 23:34:14 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-01-31 23:34:14 -0800 |
commit | 94d6cb4a78956ac1505dc4141f052f7146114d74 (patch) | |
tree | a9789ed3d7c9ec9bb5ae2840c53fda25113e06b6 /ext | |
parent | b30a6d6018705e0a9d345192eba8125ff854c167 (diff) | |
download | php-git-94d6cb4a78956ac1505dc4141f052f7146114d74.tar.gz |
fix TSRM
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 7b5dba0eaf..d2686090bd 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; } |