I'm trying to execute a .phar file using PHP. There was no issue when using PHP 8.1, but when i started to use 8.2.1, i get some output and after 5-6 lines showed, i get following error:
Notice: fgets(): Read of 8192 bytes failed with errno=5 I/O error in phar:///data/data/com.termux/files/home/PocketMine-MP.phar/src/console/ConsoleReader.php on line 67
This issue does not happen when i use cmd on Windows.
Then the process kills itself.
I have no idea whats causing it since it all worked in the older PHP version
Issue was fixed after using https://github.com/pmmp/musl-cross-make. Seems like some libc calls are blacklisted by Android.