go to bug id or search bugs for
What does the require_once function use to determine if a file has already been included or not?
Could mounting a filesystem with noatime affect it ?
or serving it over NFS (with noatime) ?
p.s. the file I'm including is only in 1 directory
Add a Patch
Add a Pull Request
Hi, Thanks for the reply
Is there a way to print the internal array that require_once is using so I can diagnose this in the production environment ?
I asked for sample script because I'm guessing you propably used relative path instead of absolute. And hence could have issues with symlinks and such. So please give a short script that clearly demonstrates the problem.
/home is a symlink to /usr/home as usual
the code is in /home/phonecode
you are right about the relative paths being used in the require_once calls.
once I changed the include_path to begin with /usr/home/phonecode rather than /home/phonecode it was resolved
but I'm dying for an answer as to why ?
it still doesn't make sense to me as to why it would include it twice, or believe it hasn't inculded it the first time
IIRC, there is some issue with realpath() and *BSD. As in: It does not work. Just don't use relative paths. Ever.