Skip to content

Commit a91f3d4

Browse files
committed
Fixed ZTS build
1 parent eb57029 commit a91f3d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/opcache/zend_accelerator_hash.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ zend_accel_hash_entry* zend_accel_hash_update(zend_accel_hash *accel_hash, char
7777
zend_ulong index;
7878
zend_accel_hash_entry *entry;
7979
zend_accel_hash_entry *indirect_bucket = NULL;
80+
#ifndef ZEND_WIN32
81+
TSRMLS_FETCH();
82+
#endif
8083

8184
if (indirect) {
8285
indirect_bucket = (zend_accel_hash_entry*)data;
@@ -148,6 +151,9 @@ void* zend_accel_hash_find(zend_accel_hash *accel_hash, char *key, zend_uint key
148151
zend_ulong hash_value;
149152
zend_ulong index;
150153
zend_accel_hash_entry *entry;
154+
#ifndef ZEND_WIN32
155+
TSRMLS_FETCH();
156+
#endif
151157

152158
hash_value = zend_inline_hash_func(key, key_length);
153159
#ifndef ZEND_WIN32
@@ -179,6 +185,9 @@ zend_accel_hash_entry* zend_accel_hash_find_entry(zend_accel_hash *accel_hash, c
179185
zend_ulong hash_value;
180186
zend_ulong index;
181187
zend_accel_hash_entry *entry;
188+
#ifndef ZEND_WIN32
189+
TSRMLS_FETCH();
190+
#endif
182191

183192
hash_value = zend_inline_hash_func(key, key_length);
184193
#ifndef ZEND_WIN32
@@ -207,6 +216,9 @@ int zend_accel_hash_unlink(zend_accel_hash *accel_hash, char *key, zend_uint key
207216
zend_ulong hash_value;
208217
zend_ulong index;
209218
zend_accel_hash_entry *entry, *last_entry=NULL;
219+
#ifndef ZEND_WIN32
220+
TSRMLS_FETCH();
221+
#endif
210222

211223
hash_value = zend_inline_hash_func(key, key_length);
212224
#ifndef ZEND_WIN32

0 commit comments

Comments
 (0)