blackqing

Results 1 comments of blackqing

我也遇到了这个问题 第一张图和第二张图为think-swoole环境 php 8.3 swoole 5.1.3 不同Model类也会相应增加weakMap的数量 关闭了APP_DEBUG = false 第三张图是nginx环境,请求结束后才会释放第一次初始化的Model ![Image](https://github.com/user-attachments/assets/1355e04e-3c75-4d05-b81c-6da4dd626edc) ![Image](https://github.com/user-attachments/assets/54e9cc70-e470-4d89-bcc0-bea6307ee4ec) ![Image](https://github.com/user-attachments/assets/4a5516fd-97e3-415b-8d85-c301b4a9de53) 以下为测试代码:更改了一下think\Model中$weakMap的属性为protected ![Image](https://github.com/user-attachments/assets/ff0b5ed5-62e0-401f-bfa8-14b707f55d8b) ![Image](https://github.com/user-attachments/assets/3e00f49c-1aff-4453-9f65-c15c1c126928)