342 Commits

Author SHA1 Message Date
Dylan K. Taylor
9e9f8a4870
Prepare 5.25.2 release 2025-03-04 20:57:47 +00:00
pmmp-admin-bot[bot]
092ea07d51 5.25.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/13549549222
2025-02-26 17:14:49 +00:00
Dylan T.
706f391068
Release 5.25.1 (#6641) 2025-02-26 17:13:44 +00:00
pmmp-admin-bot[bot]
34f801ee3c 5.25.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/13359320328
2025-02-16 22:18:20 +00:00
Dylan T.
d96ef21c4d
Prepare 5.25.0 release (#6631) 2025-02-16 22:16:47 +00:00
pmmp-admin-bot[bot]
fc86d3a44e 5.24.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12916833718
2025-01-22 20:50:42 +00:00
Dylan K. Taylor
b625fee94b
Prepare 5.24.0 release 2025-01-22 18:00:41 +00:00
pmmp-admin-bot[bot]
3453ff03fd 5.23.4 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12898306655
2025-01-22 00:10:10 +00:00
Dylan T.
04e63172c3
5.23.3 (#6597) 2025-01-22 00:08:49 +00:00
pmmp-admin-bot[bot]
67b9d6222d 5.23.3 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12240364052
2024-12-09 16:52:50 +00:00
Dylan T.
6f197bc1bb
5.23.2 (#6569) 2024-12-09 16:51:41 +00:00
pmmp-admin-bot[bot]
8efdf501ad 5.23.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12187209543
2024-12-05 20:05:36 +00:00
Dylan T.
2b0daebc2a
5.23.1 (#6562) 2024-12-05 20:04:43 +00:00
pmmp-admin-bot[bot]
15e8895e54 5.23.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12183301507
2024-12-05 15:52:16 +00:00
Dylan K. Taylor
fa7bc78e7c
Prepare 5.23.0 release 2024-12-05 14:29:17 +00:00
pmmp-restrictedactions-bot[bot]
a1448bfb88 5.22.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12160926590
2024-12-04 13:38:41 +00:00
Dries C
ba6828c6bd
Release 5.22.0 (Bedrock 1.21.50 support) (#6559)
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io>
2024-12-04 13:36:52 +00:00
pmmp-restrictedactions-bot[bot]
9cab72ed59 5.21.3 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/12090411351
2024-11-29 20:43:17 +00:00
Dylan T.
2bd9f4108b
5.21.2 (#6545) 2024-11-29 20:42:14 +00:00
github-actions
07d5046b83 5.21.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/11796630402
2024-11-12 11:48:59 +00:00
ipad54
4a702b97fd
Prepare 5.21.1 release (#6493) 2024-11-12 11:48:01 +00:00
github-actions
e598364f06 5.21.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/11652565588
2024-11-03 15:30:16 +00:00
Dylan K. Taylor
96b12bddc1
Prepare 5.21.0 release 2024-11-03 15:24:43 +00:00
github-actions
0376e37966 5.20.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/11614028030
2024-10-31 14:38:30 +00:00
Dylan T.
94dff74494
Prepare 5.20.1 release (#6479) 2024-10-31 14:35:42 +00:00
Dylan K. Taylor
e7d8d99ca6
5.20.1 is next 2024-10-26 15:42:43 +01:00
Dylan K. Taylor
414e8acf8c
Release 5.20.0 2024-10-26 15:42:43 +01:00
IvanCraft623
a5babb2c9f
5.19.1 is next 2024-09-20 19:00:23 -05:00
IvanCraft623
49c2f13cf0
Release 5.19.0 2024-09-20 18:59:45 -05:00
IvanCraft623
2a7b183ab8
5.18.2 is next 2024-09-02 11:25:50 -05:00
IvanCraft623
e9b597af6c
Release 5.18.1 2024-09-02 11:24:42 -05:00
IvanCraft623
e3baf3cddb
5.18.1 is next 2024-08-16 07:56:01 -05:00
IvanCraft623
9176b2494a
Release 5.18.0 2024-08-16 07:54:59 -05:00
IvanCraft623
f5ab2979a0
5.17.2 is next 2024-08-13 10:56:03 -05:00
IvanCraft623
929cd63135
Release 5.17.1 2024-08-13 10:55:29 -05:00
IvanCraft623
824e270041
5.17.1 is next 2024-07-09 21:16:13 -05:00
IvanCraft623
37bf4bc0b0
Release 5.17.0 2024-07-09 21:15:18 -05:00
Dylan K. Taylor
433bd6a8aa
5.16.1 is next 2024-06-13 18:55:21 +01:00
Dylan K. Taylor
22a1549998
Release 5.16.0 2024-06-13 18:55:18 +01:00
Dylan K. Taylor
be6754494f
5.15.1 is next 2024-04-25 11:52:31 +01:00
Dylan K. Taylor
d273ccf87c
Release 5.15.0 2024-04-25 11:52:30 +01:00
Dylan K. Taylor
55cf24aa02
5.14.2 is next 2024-04-05 18:41:27 +01:00
Dylan K. Taylor
3590d84d03
Release 5.14.1 2024-04-05 18:41:27 +01:00
Dylan K. Taylor
1ad190024a
5.14.1 is next 2024-04-05 18:16:22 +01:00
Dylan K. Taylor
769a149057
Release 5.14.0 2024-04-05 18:16:19 +01:00
Dylan T
0e5395c59b
PocketMine-MP.phar self-extraction to decompressed cache (#6217)
Because ext-phar sucks, tmp gets spammed by cache files for every thread when loading files from the phar on the fly.

Instead, we convert the `.phar` into a decompressed `.tar` in the tmp directory and require files from inside it. Surprisingly, this works because `ext-phar` supports `tar` and `zip` natively. No stream wrapper is required, as the `PocketMine.php` bootstrap loads files relative to its location, so the cache is automatically used for everything.

To be honest I would rather get rid of phars entirely, but they are still the easiest way to have PhpStorm load PocketMine-MP API information for now, and the alternatives are more complicated and inconvenient.

### Caveats
Everywhere that previously used `new Phar(Phar::running(false))` in the core code needs to be updated to use `PharData` for this to work correctly. Plugins don't need to do anything.

### Why not just use `Phar::decompressFiles()`?
This requires setting `phar.readonly` to `0`, which is a security issue. Technically, we could have used a subprocess to do this, but it just didn't seem right.

### WTF? `phar://` can be used on `tar` files???
Yup. I was just as surprised to find out that `require` works in such contexts.

### Relevant issues
- Closes #6214 

## Changes
### API changes
None.

### Behavioural changes
Server startup will be slightly slower, as the phar has to decompress and convert itself into a `.tar`. However, testing showed that this generally takes less than 200 ms, so it should be barely noticeable.

## Backwards compatibility
No BC issues.

## Tests
Locally tested and the CI will also verify
2024-03-18 16:48:17 +00:00
Dylan K. Taylor
2d24fac067
5.13.1 is next 2024-03-13 14:59:21 +00:00
Dylan K. Taylor
f193a990b0
Release 5.13.0 2024-03-13 14:59:21 +00:00
Dylan K. Taylor
e105c9bd76
5.12.2 is next 2024-03-13 13:48:59 +00:00
Dylan K. Taylor
23f4632409
Release 5.12.1 2024-03-13 13:48:56 +00:00