Skip to content

Commit 215b471

Browse files
committed
Merge branch '1.x'
# Conflicts: # CHANGELOG.md
2 parents 9fdf3d5 + f3ae57e commit 215b471

30 files changed

+445
-56
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
.gitignore export-ignore
1414
.styleci.yml export-ignore
1515
CHANGELOG.md export-ignore
16+
phpstan.neon.dist export-ignore
1617
phpunit.xml.dist export-ignore
1718
UPGRADE.md export-ignore

.github/ISSUE_TEMPLATE/1_Bug_report.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Bug Report
2+
description: "Report a general library issue."
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: "Before submitting your report, [please ensure your Laravel version is still supported](https://laravel.com/docs/releases#support-policy)."
7+
- type: input
8+
attributes:
9+
label: Octane Version
10+
description: Provide the Octane version that you are using.
11+
placeholder: 1.6.1
12+
validations:
13+
required: true
14+
- type: input
15+
attributes:
16+
label: Laravel Version
17+
description: Provide the Laravel version that you are using.
18+
placeholder: 10.4.1
19+
validations:
20+
required: true
21+
- type: input
22+
attributes:
23+
label: PHP Version
24+
description: Provide the PHP version that you are using.
25+
placeholder: 8.1.4
26+
validations:
27+
required: true
28+
- type: dropdown
29+
attributes:
30+
label: What server type are you using?
31+
options:
32+
- Open Swoole
33+
- Roadrunner
34+
- Swoole
35+
validations:
36+
required: true
37+
- type: input
38+
attributes:
39+
label: Server Version
40+
description: Provide the server version that you are using.
41+
placeholder: 1.4.2
42+
validations:
43+
required: true
44+
- type: input
45+
attributes:
46+
label: Database Driver & Version
47+
description: If applicable, provide the database driver and version you are using.
48+
placeholder: "MySQL 8.0.31 for macOS 13.0 on arm64 (Homebrew)"
49+
validations:
50+
required: false
51+
- type: textarea
52+
attributes:
53+
label: Description
54+
description: Provide a detailed description of the issue you are facing.
55+
validations:
56+
required: true
57+
- type: textarea
58+
attributes:
59+
label: Steps To Reproduce
60+
description: Provide detailed steps to reproduce your issue. If necessary, please provide a GitHub repository to demonstrate your issue using `laravel new bug-report --github="--public"`.
61+
validations:
62+
required: true
63+
64+

.github/workflows/issues.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: issues
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
help-wanted:
12+
uses: laravel/.github/.github/workflows/issues.yml@main
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: static analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-22.04
16+
17+
strategy:
18+
fail-fast: true
19+
20+
name: Static Analysis
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: 8.2
30+
tools: composer:v2
31+
coverage: none
32+
extensions: swoole
33+
34+
- name: Install dependencies
35+
uses: nick-fields/retry@v2
36+
with:
37+
timeout_minutes: 5
38+
max_attempts: 5
39+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
40+
41+
- name: Execute type checking
42+
run: vendor/bin/phpstan

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@ on:
1111

1212
jobs:
1313
tests:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515

1616
strategy:
1717
fail-fast: true
1818
matrix:
1919
php: ['8.0', 8.1, 8.2]
20-
laravel: [8, 9]
20+
laravel: [8, 9, 10]
2121
driver: [swoole, openswoole]
2222
exclude:
23+
- php: 8.0
24+
laravel: 10
2325
- php: 8.2
2426
laravel: 8
2527

2628
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.driver }}
2729

2830
steps:
2931
- name: Checkout code
30-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3133

3234
- name: Setup PHP
3335
uses: shivammathur/setup-php@v2
@@ -44,7 +46,7 @@ jobs:
4446
4547
- name: Install dependencies
4648
run: |
47-
composer require "laravel/framework:^${{ matrix.laravel }}" --no-update
49+
composer require "laravel/framework:^${{ matrix.laravel }}" --dev --no-update
4850
composer update --prefer-dist --no-interaction --no-progress
4951
5052
- name: Execute tests

CHANGELOG.md

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,80 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/octane/compare/v1.3.7...master)
3+
## [Unreleased](https://github.com/laravel/octane/compare/v1.5.4...master)
4+
5+
## [v1.5.4](https://github.com/laravel/octane/compare/v1.5.3...v1.5.4) - 2023-04-18
6+
7+
- Add ServerProcessInspector interface by @yiming0 in https://github.com/laravel/octane/pull/679
8+
9+
## [v1.5.3](https://github.com/laravel/octane/compare/v1.5.2...v1.5.3) - 2023-04-04
10+
11+
- Reverts #669 by @nunomaduro in https://github.com/laravel/octane/pull/676
12+
13+
## [v1.5.2](https://github.com/laravel/octane/compare/v1.5.1...v1.5.2) - 2023-04-04
14+
15+
- Give new container instance to session manager by @smortexa in https://github.com/laravel/octane/pull/669
16+
- Use getHost() by @chu121su12 in https://github.com/laravel/octane/pull/671
17+
18+
## [v1.5.1](https://github.com/laravel/octane/compare/v1.5.0...v1.5.1) - 2023-03-27
19+
20+
- Add method to fix octane route caching. by @CharlesBilbo in https://github.com/laravel/octane/pull/659
21+
- Support setting swoole server mode by @sy-records in https://github.com/laravel/octane/pull/666
22+
- Give new app instance to cache manager by @smortexa in https://github.com/laravel/octane/pull/667
23+
24+
## [v1.5.0](https://github.com/laravel/octane/compare/v1.4.3...v1.5.0) - 2023-03-04
25+
26+
- Add support for custom HTTP headers on static files by @Starfox64 in https://github.com/laravel/octane/pull/653
27+
- Fix return value error and Remove useless code by @sy-records in https://github.com/laravel/octane/pull/655
28+
29+
## [v1.4.3](https://github.com/laravel/octane/compare/v1.4.2...v1.4.3) - 2023-03-01
30+
31+
- Fix timer table set failed by @sy-records in https://github.com/laravel/octane/pull/650
32+
33+
## [v1.4.2](https://github.com/laravel/octane/compare/v1.4.1...v1.4.2) - 2023-02-07
34+
35+
### Fixed
36+
37+
- Allow graceful reload after installing packages by @taylorotwell in https://github.com/laravel/octane/pull/644
38+
39+
## [v1.4.1](https://github.com/laravel/octane/compare/v1.4.0...v1.4.1) - 2023-02-03
40+
41+
### Changed
42+
43+
- Removes internal messages from output by @nunomaduro in https://github.com/laravel/octane/pull/639
44+
- Only displays source when there is source by @nunomaduro in https://github.com/laravel/octane/pull/640
45+
- Adds support for Collision `v7.x` by @nunomaduro in https://github.com/laravel/octane/pull/643
46+
47+
### Fixed
48+
49+
- Fix unsetting a cookie value when using Swoole by @oprypkhantc in https://github.com/laravel/octane/pull/642
50+
51+
## [v1.4.0](https://github.com/laravel/octane/compare/v1.3.10...v1.4.0) - 2023-01-10
52+
53+
### Added
54+
55+
- Adds Laravel 10 support by @nunomaduro in https://github.com/laravel/octane/pull/629
56+
57+
## [v1.3.10](https://github.com/laravel/octane/compare/v1.3.9...v1.3.10) - 2022-12-23
58+
59+
### Changed
60+
61+
- Adds support for Open Swoole `v22.x` by @nunomaduro in https://github.com/laravel/octane/pull/626
62+
63+
## [v1.3.9](https://github.com/laravel/octane/compare/v1.3.8...v1.3.9) - 2022-11-19
64+
65+
### Changed
66+
67+
- Add `--rpc-host` option for Roadrunner by @matthew-inamdar in https://github.com/laravel/octane/pull/619
68+
69+
### Fixed
70+
71+
- Resolve typo resulting in deprecation notice by @owenvoke in https://github.com/laravel/octane/pull/614
72+
73+
## [v1.3.8](https://github.com/laravel/octane/compare/v1.3.7...v1.3.8) - 2022-11-11
74+
75+
### Fixed
76+
77+
- Prefix rr binary permissions with 0 to specify it as an octal value by @Dylan-Buth in https://github.com/laravel/octane/pull/611
478

579
## [v1.3.7](https://github.com/laravel/octane/compare/v1.3.6...v1.3.7) - 2022-11-02
680

bin/createSwooleServer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
try {
66
$server = new Swoole\Http\Server(
77
$serverState['host'] ?? '127.0.0.1',
8-
$serverState['port'] ?? '8080',
9-
SWOOLE_PROCESS,
8+
$serverState['port'] ?? 8080,
9+
$serverState['mode'] ?? SWOOLE_PROCESS,
1010
($config['swoole']['ssl'] ?? false)
1111
? SWOOLE_SOCK_TCP | SWOOLE_SSL
1212
: SWOOLE_SOCK_TCP,

bin/createSwooleTimerTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require_once __DIR__.'/../src/Tables/TableFactory.php';
77

88
if (($serverState['octaneConfig']['max_execution_time'] ?? 0) > 0) {
9-
$timerTable = TableFactory::make(250);
9+
$timerTable = TableFactory::make($serverState['octaneConfig']['max_timer_table_size'] ?? 250);
1010

1111
$timerTable->column('worker_pid', Table::TYPE_INT);
1212
$timerTable->column('time', Table::TYPE_INT);

bin/swoole-server

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@ $server->on('start', fn (Server $server) => $bootstrap($serverState) && (new OnS
5656
$serverState['octaneConfig']['tick'] ?? true
5757
))($server));
5858

59-
$server->on('managerstart', fn () => $bootstrap($serverState) && (new OnManagerStart(
60-
new SwooleExtension, $serverState['appName']
61-
))());
59+
$server->on('managerstart', function () use ($serverState) {
60+
// Don't bootstrap entire application before server / worker start. Otherwise, files can't be gracefully reloaded... #632
61+
require_once __DIR__.'/../src/Swoole/Handlers/OnManagerStart.php';
62+
require_once __DIR__.'/../src/Swoole/SwooleExtension.php';
63+
64+
(new OnManagerStart(
65+
new SwooleExtension, $serverState['appName']
66+
))();
67+
});
6268

6369
/*
6470
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)