php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21398 absolute path problems when include_path is set...
Submitted: 2003-01-03 15:49 UTC Modified: 2003-01-03 17:31 UTC
From: keremtuzemen at hotmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.0 OS: Win2K
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: keremtuzemen at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-01-03 15:49 UTC] keremtuzemen at hotmail dot com
If include_path in php.ini is set, absolute paths with include and include_once do not work. If include_path is commented out with ; in php.ini they work fine. \

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-03 16:25 UTC] nicos@php.net
Can you please give us a script that reproduce your problem so we can really check the issue?

Thank you for your report.
 [2003-01-03 17:24 UTC] keremtuzemen at hotmail dot com
I've tried to write a script to regenerate the behavior. I think I've missed something or php.ini settings were cached somehow. Now, everything seems working fine. Sorry for bothering you guys. But I still have a question. In old versions (4.1.x) when giving an absolute path like :
include ("\includesdir\includedfile.php");
everything was working fine. With 4.3.0 the leading backslash is causing problems and makes php report "failed to create stream". But 
include ("includesdir\includedfile.php");
works. 
Is there something I'm missing? If the reason is a structural change, I thought, there should be a switch to set this behavior but couldn't find anything related.

Thanks for the quick reply and I'm really sorry to waste your time.  I'd really appreciate it if you can answer my question.
 [2003-01-03 17:31 UTC] nicos@php.net
No problem.

About your question, we now have a new stream handler (thanks Wez). Since you're working on Windows you need to give the complete directory if you are starting with '\' so like C:\includedir\lala\lala.php but I'm sure you should prefer to use C:/ and not C:\ so you will not need to use \\ Sometimes.

If you need more help about the way directories work,please ask in php-general@lists.php.net. 

Thank for your report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC