summaryrefslogtreecommitdiff
path: root/ext/standard/file.h
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-03-31 12:39:01 +0100
committerJoe Watkins <krakjoe@php.net>2016-03-31 12:39:01 +0100
commit233115ea236fd1aa258e8b733d3855d1261fba8b (patch)
treedb5f522d2d1787169e25b8f2cc4b485e0c67f72e /ext/standard/file.h
parented06d130f70691cb50bed9dc7b9db38970a9d408 (diff)
downloadphp-git-233115ea236fd1aa258e8b733d3855d1261fba8b.tar.gz
fix #71609: Segmentation fault on ZTS with gethostbyname
Diffstat (limited to 'ext/standard/file.h')
-rw-r--r--ext/standard/file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/file.h b/ext/standard/file.h
index d423475386..a9b96d6b38 100644
--- a/ext/standard/file.h
+++ b/ext/standard/file.h
@@ -129,6 +129,11 @@ typedef struct {
HashTable *stream_filters; /* per-request copy of stream_filters_hash */
HashTable *wrapper_errors; /* key: wrapper address; value: linked list of char* */
int pclose_wait;
+#if defined(HAVE_GETHOSTBYNAME_R)
+ struct hostent tmp_host_info;
+ char *tmp_host_buf;
+ size_t tmp_host_buf_len;
+#endif
} php_file_globals;
#ifdef ZTS