Skip to content

Commit 493100b

Browse files
committed
Drop TSRM_ASSERT macro
It is only used once, and because ZEND_DEBUG is always defined we were asserting even in non debug builds
1 parent c099713 commit 493100b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

TSRM/TSRM.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
#include <stdio.h>
1818
#include <stdarg.h>
1919

20-
#ifdef ZEND_DEBUG
21-
# include <assert.h>
22-
# define TSRM_ASSERT assert
23-
#else
24-
# define TSRM_ASSERT
25-
#endif
26-
2720
typedef struct _tsrm_tls_entry tsrm_tls_entry;
2821

2922
/* TSRMLS_CACHE_DEFINE; is already done in Zend, this is being always compiled statically. */
@@ -479,7 +472,7 @@ void ts_free_thread(void)
479472
int hash_value;
480473
tsrm_tls_entry *last=NULL;
481474

482-
TSRM_ASSERT(!in_main_thread);
475+
ZEND_ASSERT(!in_main_thread);
483476

484477
tsrm_mutex_lock(tsmm_mutex);
485478
hash_value = THREAD_HASH_OF(thread_id, tsrm_tls_table_size);

0 commit comments

Comments
 (0)