ID:               47157
 Updated by:       j...@php.net
 Reported By:      stephanie4343 at yahoo dot com
 Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 7.1
 PHP Version:      5.2.8
 New Comment:

IIRC, there is some issue with realpath() and *BSD. As in: It does not
work. Just don't use relative paths. Ever.


Previous Comments:
------------------------------------------------------------------------

[2009-01-22 04:31:59] stephanie4343 at yahoo dot com

/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

------------------------------------------------------------------------

[2009-01-20 12:33:18] j...@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] j...@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

Reply via email to