|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27308 Include Paths
Submitted: 2004-02-18 05:51 UTC Modified: 2004-02-18 17:52 UTC
From: php at richard-fila dot co dot uk Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: Irrelevant OS: Windows & Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: php at richard-fila dot co dot uk
New email:
PHP Version: OS:


 [2004-02-18 05:51 UTC] php at richard-fila dot co dot uk
When including a file the handling of paths differs between linux and windows.

When including a file from a file which has already been included the second level include paths are different.  Windows recalculates the ./ path for each included script while linux just uses the ./ path from the first script accessed.  This means relative paths cannot be used.

Obviously the windows method is the correct one.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-18 17:52 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

The behavior is different for ZTS and non-zts modes. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 02:01:30 2024 UTC