Use a subprocess for reading lines from STDIN (#4332)

this FINALLY provides us with a way to deal with Windows without needing to forcibly terminate the entire server on shutdown.
This commit is contained in:
Dylan T
2021-07-24 22:10:50 +01:00
committed by GitHub
parent 772935cd7e
commit 1246d1b7ef
3 changed files with 121 additions and 22 deletions

View File

@ -10,6 +10,11 @@ parameters:
count: 2
path: ../../../src/console/ConsoleReader.php
-
message: "#^Parameter \\#1 \\$command of function proc_open expects string, array\\<int, string\\> given\\.$#"
count: 1
path: ../../../src/console/ConsoleReaderThread.php
-
message: "#^Method pocketmine\\\\crafting\\\\CraftingManager\\:\\:getDestructorCallbacks\\(\\) should return pocketmine\\\\utils\\\\ObjectSet\\<Closure\\(\\)\\: void\\> but returns pocketmine\\\\utils\\\\ObjectSet\\<Closure\\(\\)\\: void\\>\\|pocketmine\\\\utils\\\\ObjectSet\\<object\\>\\.$#"
count: 1