Skip to content

Commit 8d88c13

Browse files
chore: remove TODO items not relevant anymore (#1694)
1 parent d2a1b61 commit 8d88c13

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

frankenphp.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
ZEND_TSRMLS_CACHE_DEFINE()
3434
#endif
3535

36+
/**
37+
* The list of modules to reload on each request. If an external module
38+
* requires to be reloaded between requests, it is possible to hook on
39+
* `sapi_module.activate` and `sapi_module.deactivate`.
40+
*
41+
* @see https://github.com/DataDog/dd-trace-php/pull/3169 for an example
42+
*/
3643
static const char *MODULES_TO_RELOAD[] = {"filter", "session", NULL};
3744

3845
frankenphp_version frankenphp_get_version() {
@@ -121,7 +128,6 @@ static void frankenphp_worker_request_shutdown() {
121128
zend_try { php_output_end_all(); }
122129
zend_end_try();
123130

124-
/* TODO: store the list of modules to reload in a global module variable */
125131
const char **module_name;
126132
zend_module_entry *module;
127133
for (module_name = MODULES_TO_RELOAD; *module_name; module_name++) {
@@ -223,7 +229,6 @@ static int frankenphp_worker_request_startup() {
223229
}
224230
}
225231

226-
/* TODO: store the list of modules to reload in a global module variable */
227232
const char **module_name;
228233
zend_module_entry *module;
229234
for (module_name = MODULES_TO_RELOAD; *module_name; module_name++) {
@@ -546,10 +551,7 @@ static int frankenphp_startup(sapi_module_struct *sapi_module) {
546551
return php_module_startup(sapi_module, &frankenphp_module);
547552
}
548553

549-
static int frankenphp_deactivate(void) {
550-
/* TODO: flush everything */
551-
return SUCCESS;
552-
}
554+
static int frankenphp_deactivate(void) { return SUCCESS; }
553555

554556
static size_t frankenphp_ub_write(const char *str, size_t str_length) {
555557
struct go_ub_write_return result =

0 commit comments

Comments
 (0)