BUILDING.md: Document server-phar.php's compression bug (#4037)

This bug is not fixable on PM's side because the fault lies with php-src. It was fixed recently in 1bb2a4f91c.
This commit is contained in:
mmm545 2021-02-15 22:53:44 +03:00 committed by GitHub
parent 8f8821c904
commit 57423540f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,5 +34,11 @@ Run `composer make-server` using your preferred PHP binary. It'll drop a `Pocket
You can also use the `--out` option to change the output filename.
There is a bug in PHP that might cause an error which looks like this:
```
Fatal error: Uncaught BadMethodCallException: unable to create temporary file in PocketMine-MP/build/server-phar.php:119
```
You can work around it by setting `ulimit -n` to some bigger number, e.g. `8192`, or by updating your PHP version to at least 7.4.16 or 8.0.3.
## Running PocketMine-MP from source code
Run `src/pocketmine/PocketMine.php` using your preferred PHP binary.