Skip to content

Commit f36d431

Browse files
Fix tests for PHP5
1 parent b8dc02a commit f36d431

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/spx_php.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,16 @@ static struct {
125125
NULL
126126
};
127127

128-
static SPX_THREAD_TLS struct {
129128
#if ZEND_MODULE_API_NO >= 20151012
129+
static SPX_THREAD_TLS struct {
130130
void * (*malloc) (size_t size);
131131
void (*free) (void * ptr);
132132
void * (*realloc) (void * ptr, size_t size);
133133
size_t (*block_size) (void * ptr);
134-
#else
135-
int unused;
136-
#endif
137134
} ze_tls_hooked_func = {
138-
#if ZEND_MODULE_API_NO >= 20151012
139135
NULL, NULL, NULL, NULL
140-
#else
141-
0
142-
#endif
143136
};
137+
#endif
144138

145139
static SPX_THREAD_TLS struct {
146140
struct {

0 commit comments

Comments
 (0)