0
代码介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
0
  1. PocketMine-MP
  2. /
  3. src
  4. /
  5. console
DDylan T.Fixed PHP 8.5 issues reported by PHPStan
c8044175创建于 2025年12月24日历史提交
文件最后提交记录最后更新时间
ConsoleCommandSender.php
New rule: explode() limit parameter must be set 1 年前
ConsoleReader.php
Use PHP-CS-Fixer to enforce file header presence 3 年前
ConsoleReaderChildProcess.php
Fixed PHP 8.5 issues reported by PHPStan 4 个月前
ConsoleReaderChildProcessDaemon.php
Update PHPStan 6 个月前
ConsoleReaderChildProcessUtils.php
ConsoleReader: Use proc_open()'s socket support to send commands back to the main server process (#5273) Support for this was introduced in PHP 8.0, though not mentioned in any changelog: php/php-src#5777 This simplifies the subprocess handling considerably. However, there is a potential for problems if PHP generates any E_* errors, since these get written to STDOUT as well. To avoid error messages being treated as a command, a hash is attached to each IPC message, seeded with an incrementing counter. This prevents error messages causing command replays or unintended commands. Unfortunately, PHP doesn't support binding pipes other than stdin/stdout/stderr on Windows for the child process, so we have to use stdout for this. In the future, if it becomes possible, a dedicated pipe for the purpose should be introduced. We'd need something like php://fd/<number> to work on Windows.1 年前