We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91c654 commit 7855c52Copy full SHA for 7855c52
ext/standard/dns.c
@@ -163,7 +163,7 @@ PHP_FUNCTION(gethostbyaddr)
163
#endif
164
RETVAL_FALSE;
165
} else {
166
- RETVAL_STR(hostname);
+ RETVAL_NEW_STR(hostname);
167
}
168
169
/* }}} */
@@ -236,7 +236,7 @@ PHP_FUNCTION(gethostbyname)
236
php_error_docref(NULL, E_WARNING, "Host name to ip failed %s", hostname);
237
RETURN_STRINGL(hostname, hostname_len);
238
239
- RETURN_STR(ipaddr);
+ RETURN_NEW_STR(ipaddr);
240
241
242
0 commit comments