com php-src: add ZEND_THREAD specifier: Zend/zend_por tability.h
| From: | Anatol Belski | Date: | Tue, 28 Jul 2015 14:59:50 +0000 |
| Subject: | com php-src: add ZEND_THREAD specifier: Zend/zend_por tability.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88205@lists.php.net to get a copy of this message | ||
Commit: 0c08ba8be443b087aae8904213a1f10df6db4fd5
Author: Anatol Belski <ab@php.net> Tue, 28 Jul 2015 12:17:53 +0200
Parents: 2ec51faece2dc5195433f4299ef3b429c2589185
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c08ba8be443b087aae8904213a1f10df6db4fd5
Log:
add ZEND_THREAD specifier
Changed paths:
M Zend/zend_portability.h
Diff:
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 99069e5..9a748d9 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -443,6 +443,12 @@ char *alloca();
#define ZEND_VALID_SOCKET(sock) ((sock) >= 0)
#endif
+#ifdef ZTS
+#define ZEND_THREAD TSRM_TLS
+#else
+#define ZEND_THREAD
+#endif
+
#endif /* ZEND_PORTABILITY_H */
/*