php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11673 UNC paths not working when used in include_path
Submitted: 2001-06-25 14:12 UTC Modified: 2001-06-27 10:28 UTC
From: steve at aidacorp dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2001-06-25 14:12 UTC] steve at aidacorp dot com
Using a UNC path in as the home directory under IIS 5.0
and Windows 2000 Server using the PHP ISAPI module
does not seem to work.  If I set the Network Directory
to "\\nas\web\customer" I get the following error from
PHP:

Warning: Failed opening '\\nas\web\customer\index.php'
for inclusion

If I map a drive then there is not a problem opening
the file but drives are not mapped until a user logs
in so this cannot be used on the web server.

Also, in the php.ini file, if I use

include_dir = "\\nas\inetpub\phpinclude"
or
include_dir = "\\\\nas\\inetpub\\phpinclude"

both give the error that the included files cannot be
found.  If I use

include_dir = "//nas/inetpub/phpinclude"

then there is no problem.

Also, if I run the php.exe program with a UNC path it
does not work, but if I map a drive then all is well.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 10:28 UTC] zeev@php.net
Should be fixed in the latest CVS (will be a part of 4.0.7) - thanks for the report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 07:01:29 2024 UTC