William Varmus

Results 2 issues of William Varmus

The upstream phpredis extension supports connecting to Redis using Unix sockets. However, the current connection method in this project uses `parse_url($address, PHP_URL_HOST)`, which inadvertently filters out Unix socket paths. This...

#### 环境 * **webman:** 2.1.2 * **PHP:** 8.4.8 #### 摘要 `Webman\Container` 类中的 `make` 方法当前使用了 `array_values` 函数,这导致其构造函数参数注入机制严重依赖于用户提供数组的**物理顺序**,而非键名。这种设计不仅不直观、容易出错,而且在特定场景下会因为一个简单的配置错误,引发灾难性的、难以排查的性能问题,甚至导致整个服务瘫痪。 本 issue 将通过一个真实的生产事故案例来详细阐述其严重性,并提出一个在 webman 当前 PHP 8.1+ 环境下,能够从根本上解决问题的、健壮且现代化的解决方案。 #### 问题根源 位于 `webman/src/Container.php` 的 `Webman\Container`...