Difference between revisions of "那些出现 bug 的原因"

From 清冽之泉
Jump to navigation Jump to search
(Created page with "* 鎵句笉鍒版寚瀹氱殑妯″潡銆 : 这是一串乱码,问通义千问和 Kimi 都无解,灵机一动搜乱 [http://www.mytju.com/classCode/tools/messyCodeRecover....")
 
Line 9: Line 9:
 
?>
 
?>
 
</syntaxhighlight>
 
</syntaxhighlight>
终于排查出,我的 php 8.2 是 Thread Safety 的,即内存安全的,而我下载的 apcu.dll 是 Non Thread Safety 的。重新下载一份,立刻解决了问题。
+
终于排查出,我的 php 8.2 是 Thread Safety 的,即内存安全的,而我下载的 apcu.dll 是 Non Thread Safety 的。重新下载一份,立刻解决了问题。感谢 CSDN 博主 @weixin_39673293 的 [https://blog.csdn.net/weixin_39673293/article/details/111521258 这篇文章] 中的 nts 关键提示!

Revision as of 09:57, 15 July 2024

  • 鎵句笉鍒版寚瀹氱殑妯″潡銆
这是一串乱码,问通义千问和 Kimi 都无解,灵机一动搜乱 乱码恢复 解决了,它是 UTF8 “找不到指定模块” 被当成 GBK 显示时的样子
  • php 找不到 apcu 模块
找遍种种原因,如 apcu 版本不对,apcu 放置路径不对,apcu 路径没添加到环境变量,apcu 不支持 php 8.2,xampp 不支持 apcu,apcu 用于 Windows 需要编译,重启深度不够……全都没用;问过通义千问、Kimi AI、Bing,也没弄明白。最后,创建 info.php ,内容如下:
1<?php
2phpinfo();
3?>

终于排查出,我的 php 8.2 是 Thread Safety 的,即内存安全的,而我下载的 apcu.dll 是 Non Thread Safety 的。重新下载一份,立刻解决了问题。感谢 CSDN 博主 @weixin_39673293 的 这篇文章 中的 nts 关键提示!