php 要求和自动加载

发布于 2024-08-26 12:01:18 字数 179 浏览 2 评论 0原文

我使用 __autoload 来加载类,并且不断收到错误,未找到类,但文件加载正常。 然后,如果我更改文件中的某些内容,只需添加新行并保存之类的内容,一切都会正常工作,然后会找到类。 但这是一个很大的问题,因为这个项目中有数千个文件,我不想一一更改它们。 我在 Windows 上使用 php 5.3.0。

可能是什么问题?

I use __autoload to load classes, and I keep getting errors that no class is found but file get's loaded ok.
Then if I change something in a file, just something like add a new line and save it, everything works fine and class is then found.
But this is a great problem cause there are thousands of files in this project and I don't want to change them one by one.
I'm using php 5.3.0 on windows.

What could be the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↙温凉少女 2024-09-02 12:01:18

我发现问题仅出现在php版本5.3.0和相应的php_apc.dll上

I found that the problem is only with php version 5.3.0 and corresponding php_apc.dll

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文