4

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?

5
  • Do you use some extension to cache PHP scripts like php accelerators? Commented Mar 25, 2010 at 15:16
  • Yes php_apc.dll, Alternative PHP Cache Commented Mar 25, 2010 at 15:20
  • 1
    As I see it, it seems to be a bug in php 5.3 pecl.php.net/bugs/bug.php?id=14066 Commented Mar 25, 2010 at 15:23
  • Try to delete the APC cache every time you edit a file Commented Mar 25, 2010 at 15:27
  • But that isn't a problem, I don't want to edit a file, project has been exported from SVN, there are a lot of files there and they should work out of the box. When I edit a file, then everything works. It's a weird problem. Commented Mar 25, 2010 at 15:43

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.