summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-11-18 02:43:23 +0000
committerZeev Suraski <zeev@php.net>2000-11-18 02:43:23 +0000
commit9a0b61a6195433a7115b040b47df03ec46f5117d (patch)
treed7aee9cf0ccf8bc59cd547568806c34b2d2bdeb5 /Zend/zend_alloc.h
parent1ebdb6fa14ab47c70600c0c6c6c96ff09f161b90 (diff)
downloadphp-git-9a0b61a6195433a7115b040b47df03ec46f5117d.tar.gz
Add thread-safety debugging information (idea - Dmitri Dmitrienko)
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h
index ee2cf063f8..1df9f139d6 100644
--- a/Zend/zend_alloc.h
+++ b/Zend/zend_alloc.h
@@ -23,6 +23,7 @@
#include <stdio.h>
+#include "../TSRM/TSRM.h"
#include "zend_globals_macros.h"
#define MEM_BLOCK_START_MAGIC 0x7312F8DCL
@@ -38,6 +39,9 @@ typedef struct _zend_mem_header {
int reported;
char *orig_filename;
uint orig_lineno;
+# ifdef ZTS
+ THREAD_T thread_id;
+# endif
#endif
struct _zend_mem_header *pNext;
struct _zend_mem_header *pLast;