Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Apr 14, 2023
2 parents aa8f32b + f252c0d commit 5455bc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions zend/StandardModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,9 @@ public function startup(): void
}

if ($this->r_shutdown)
\register_shutdown_function(
\closure_from($this, 'module_destructor')
);
\register_shutdown_function(function () {
\register_shutdown_function(\closure_from($this, 'module_destructor'));
});


if ($this->restart_sapi) {
Expand Down
6 changes: 3 additions & 3 deletions zend/ThreadsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function startup(): void
}

if ($this->r_shutdown)
\register_shutdown_function(
\closure_from($this, 'module_destructor')
);
\register_shutdown_function(function () {
\register_shutdown_function(\closure_from($this, 'module_destructor'));
});

$result = \IS_PHP82
? \ze_ffi()->php_module_startup(\FFI::addr(\ze_ffi()->sapi_module), null)
Expand Down

0 comments on commit 5455bc6

Please sign in to comment.