File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ void list_entry_destructor(void *ptr)
163
163
{
164
164
zend_rsrc_list_entry * le = (zend_rsrc_list_entry * ) ptr ;
165
165
zend_rsrc_list_dtors_entry * ld ;
166
+ TSRMLS_FETCH ();
166
167
167
168
if (zend_hash_index_find (& list_destructors , le -> type ,(void * * ) & ld )== SUCCESS ) {
168
169
switch (ld -> type ) {
@@ -173,7 +174,7 @@ void list_entry_destructor(void *ptr)
173
174
break ;
174
175
case ZEND_RESOURCE_LIST_TYPE_EX :
175
176
if (ld -> list_dtor_ex ) {
176
- ld -> list_dtor_ex (le );
177
+ ld -> list_dtor_ex (le TSRMLS_CC );
177
178
}
178
179
break ;
179
180
EMPTY_SWITCH_DEFAULT_CASE ()
@@ -188,6 +189,7 @@ void plist_entry_destructor(void *ptr)
188
189
{
189
190
zend_rsrc_list_entry * le = (zend_rsrc_list_entry * ) ptr ;
190
191
zend_rsrc_list_dtors_entry * ld ;
192
+ TSRMLS_FETCH ();
191
193
192
194
if (zend_hash_index_find (& list_destructors , le -> type ,(void * * ) & ld )== SUCCESS ) {
193
195
switch (ld -> type ) {
@@ -198,7 +200,7 @@ void plist_entry_destructor(void *ptr)
198
200
break ;
199
201
case ZEND_RESOURCE_LIST_TYPE_EX :
200
202
if (ld -> plist_dtor_ex ) {
201
- ld -> plist_dtor_ex (le );
203
+ ld -> plist_dtor_ex (le TSRMLS_CC );
202
204
}
203
205
break ;
204
206
EMPTY_SWITCH_DEFAULT_CASE ()
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ typedef struct _zend_rsrc_list_entry {
34
34
int refcount ;
35
35
} zend_rsrc_list_entry ;
36
36
37
- typedef void (* rsrc_dtor_func_t )(zend_rsrc_list_entry * rsrc );
38
- #define ZEND_RSRC_DTOR_FUNC (name ) void name(zend_rsrc_list_entry *rsrc)
37
+ typedef void (* rsrc_dtor_func_t )(zend_rsrc_list_entry * rsrc TSRMLS_DC );
38
+ #define ZEND_RSRC_DTOR_FUNC (name ) void name(zend_rsrc_list_entry *rsrc TSRMLS_DC )
39
39
40
40
typedef struct _zend_rsrc_list_dtors_entry {
41
41
/* old style destructors */
You can’t perform that action at this time.
0 commit comments