diff options
author | Stanislav Malyshev <stas@php.net> | 2015-01-31 23:34:27 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-01-31 23:34:27 -0800 |
commit | d82424b46f1023906135f87ae8112bcf932bca4e (patch) | |
tree | b7792f31cb59f6d5e322609b9ff6365f3c01c9e1 | |
parent | 380741daa40a8f8311cc41a015662b0ea1632d9e (diff) | |
parent | 94d6cb4a78956ac1505dc4141f052f7146114d74 (diff) | |
download | php-git-d82424b46f1023906135f87ae8112bcf932bca4e.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fix TSRM
-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 8b93b717c6..bdfb04ce3a 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; } |