-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96ddf0d
commit 1378f4b
Showing
7 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
* @author zhanguangcheng<[email protected]> | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
* @noinspection PhpRedeclarationStdlibFunctionInspection | ||
* @noinspection PhpUnusedParameterInspection | ||
* @noinspection PhpUnused | ||
*/ | ||
|
||
use Linkerman\ExitException; | ||
|
@@ -21,7 +23,7 @@ | |
* @param mixed ...$args | ||
* @return void | ||
*/ | ||
function register_shutdown_function(callable $callback, mixed ...$args): void | ||
function register_shutdown_function_user(callable $callback, mixed ...$args): void | ||
{ | ||
if (!(\is_array($callback) && $callback[0] === '\\Workerman\\Worker')) { | ||
// Prevent memory leaks caused by callback functions that are not executed normally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters