#47157 [Fbk->Opn]: require_once included a file twice
| From: | stephanie4343 at yahoo dot com | Date: | Thu, 22 Jan 2009 04:32:07 +0000 |
| Subject: | #47157 [Fbk->Opn]: require_once included a file twice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133146@lists.php.net to get a copy of this message | ||
ID: 47157
User updated by: stephanie4343 at yahoo dot com
Reported By: stephanie4343 at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: FreeBSD 7.1
PHP Version: 5.2.8
New Comment:
/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
Previous Comments:
------------------------------------------------------------------------
[2009-01-20 12:33:18] jani@php.net
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.
------------------------------------------------------------------------
[2009-01-20 02:55:06] stephanie4343 at yahoo dot com
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 ?
------------------------------------------------------------------------
[2009-01-20 01:00:52] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2009-01-19 23:06:29] stephanie4343 at yahoo dot com
Description:
------------
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47157&edit=1