Skip to content

Commit fdd756a

Browse files
committed
* rename dtor functions
1 parent 3fc842a commit fdd756a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Zend/zend_async_API.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ ZEND_API bool zend_async_reactor_is_enabled(void)
199199
return reactor_module_name != NULL;
200200
}
201201

202-
static void ts_globals_ctor(zend_async_globals_t *globals)
202+
static void internal_globals_ctor(zend_async_globals_t *globals)
203203
{
204204
globals->state = ZEND_ASYNC_OFF;
205205
zend_atomic_bool_store(&globals->heartbeat, false);
@@ -213,21 +213,21 @@ static void ts_globals_ctor(zend_async_globals_t *globals)
213213
globals->exit_exception = NULL;
214214
}
215215

216-
static void ts_globals_dtor(zend_async_globals_t *globals)
216+
static void internal_globals_dtor(zend_async_globals_t *globals)
217217
{
218218
}
219219

220220
void zend_async_globals_ctor(void)
221221
{
222222
#ifdef ZTS
223223
ts_allocate_fast_id(&zend_async_globals_id, &zend_async_globals_offset,
224-
sizeof(zend_async_globals_t), (ts_allocate_ctor) ts_globals_ctor,
225-
(ts_allocate_dtor) ts_globals_dtor);
224+
sizeof(zend_async_globals_t), (ts_allocate_ctor) internal_globals_ctor,
225+
(ts_allocate_dtor) internal_globals_dtor);
226226

227227
ZEND_ASSERT(zend_async_globals_id != 0 && "zend_async_globals allocation failed");
228228

229229
#else
230-
ts_globals_ctor(&zend_async_globals_api);
230+
internal_globals_ctor(&zend_async_globals_api);
231231
#endif
232232
}
233233

@@ -239,7 +239,7 @@ void zend_async_globals_dtor(void)
239239
{
240240
#ifdef ZTS
241241
#else
242-
ts_globals_dtor(&zend_async_globals_api);
242+
internal_globals_dtor(&zend_async_globals_api);
243243
#endif
244244
}
245245

0 commit comments

Comments
 (0)