com php-src: Fixed ZTS build: ext/opcache/zend_accelerator_ hash.c
| From: | Dmitry Stogov | Date: | Wed, 16 Nov 2016 13:43:57 +0000 |
| Subject: | com php-src: Fixed ZTS build: ext/opcache/zend_accelerator_ hash.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95791@lists.php.net to get a copy of this message | ||
Commit: a91f3d475ee9a59c38833c683c0bd355338f1564
Author: Dmitry Stogov <dmitry@zend.com> Wed, 16 Nov 2016 16:43:57 +0300
Parents: eb570294a289b45d0dd38efc71065d6b0d314c4b
Branches: PHP-5.6 PHP-7.0 PHP-7..1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a91f3d475ee9a59c38833c683c0bd355338f1564
Log:
Fixed ZTS build
Changed paths:
M ext/opcache/zend_accelerator_hash.c
Diff:
diff --git a/ext/opcache/zend_accelerator_hash.c b/ext/opcache/zend_accelerator_hash.c
index 4b8b712..4a16a93 100644
--- a/ext/opcache/zend_accelerator_hash.c
+++ b/ext/opcache/zend_accelerator_hash.c
@@ -77,6 +77,9 @@ zend_accel_hash_entry* zend_accel_hash_update(zend_accel_hash *accel_hash, char
zend_ulong index;
zend_accel_hash_entry *entry;
zend_accel_hash_entry *indirect_bucket = NULL;
+#ifndef ZEND_WIN32
+ TSRMLS_FETCH();
+#endif
if (indirect) {
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
zend_ulong hash_value;
zend_ulong index;
zend_accel_hash_entry *entry;
+#ifndef ZEND_WIN32
+ TSRMLS_FETCH();
+#endif
hash_value = zend_inline_hash_func(key, key_length);
#ifndef ZEND_WIN32
@@ -179,6 +185,9 @@ zend_accel_hash_entry* zend_accel_hash_find_entry(zend_accel_hash *accel_hash, c
zend_ulong hash_value;
zend_ulong index;
zend_accel_hash_entry *entry;
+#ifndef ZEND_WIN32
+ TSRMLS_FETCH();
+#endif
hash_value = zend_inline_hash_func(key, key_length);
#ifndef ZEND_WIN32
@@ -207,6 +216,9 @@ int zend_accel_hash_unlink(zend_accel_hash *accel_hash, char *key, zend_uint key
zend_ulong hash_value;
zend_ulong index;
zend_accel_hash_entry *entry, *last_entry=NULL;
+#ifndef ZEND_WIN32
+ TSRMLS_FETCH();
+#endif
hash_value = zend_inline_hash_func(key, key_length);
#ifndef ZEND_WIN32