-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for working with newer versions of OpenSwoole.
Signed-off-by: Slavey Karadzhov <skaradzhov@perforce.com>
- Loading branch information
1 parent
3ab78a3
commit faa15c1
Showing
2 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use OpenSwoole\Util; | ||
|
||
// @see https://github.com/mezzio/mezzio-swoole/issues/110#issuecomment-1500174967 | ||
// Override the swoole_set_process_name function | ||
if (version_compare(phpversion('openswoole'), '22.0.0', '>=')) { | ||
function swoole_set_process_name(string $process_name): void | ||
{ | ||
Util::setProcessName($process_name); | ||
} | ||
} |
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