Skip to content

Commit 94d6cb4

Browse files
committed
fix TSRM
1 parent b30a6d6 commit 94d6cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/dns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ PHP_FUNCTION(gethostbyname)
224224

225225
if(hostname_len > MAXFQDNLEN) {
226226
/* name too long, protect from CVE-2015-0235 */
227-
php_error_docref(NULL, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
227+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
228228
RETURN_STRINGL(hostname, hostname_len, 1);
229229
}
230230
addr = php_gethostbyname(hostname);
@@ -249,7 +249,7 @@ PHP_FUNCTION(gethostbynamel)
249249

250250
if(hostname_len > MAXFQDNLEN) {
251251
/* name too long, protect from CVE-2015-0235 */
252-
php_error_docref(NULL, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
252+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Host name is too long, the limit is %d characters", MAXFQDNLEN);
253253
RETURN_FALSE;
254254
}
255255

0 commit comments

Comments
 (0)