From 57423540f01def019544183d79e2611bb3b6411b Mon Sep 17 00:00:00 2001 From: mmm545 <64874108+mmm545@users.noreply.github.com> Date: Mon, 15 Feb 2021 22:53:44 +0300 Subject: [PATCH] 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 https://github.com/php/php-src/commit/1bb2a4f91cfde36ba343184f3d88189e646cc363. --- BUILDING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index f84b83e35..fa2295f20 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -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.