|  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
 [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: Sat Jun 22 16:01:29 2024 UTC