php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11280 Parser cannot read network file paths
Submitted: 2001-06-04 23:10 UTC Modified: 2001-06-05 00:05 UTC
From: memag at mediaone dot net Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.4pl1 OS: Win32
Private report: No CVE-ID: None
 [2001-06-04 23:10 UTC] memag at mediaone dot net
Network file paths such as "//computer/path/to/file.php" cannot be read using PHP file access functions, or parsed by the PHP interpreter.  When attempting to parse PHP files located in remote directories the interpreter returns a warning like the following:

Warning: Failed opening '//computer/path/to/file.php' for inclusion (include_path='.') in Unknown on line 0

Warning: Failed opening '//computer/path/to/file.php' for inclusion (include_path='.') in Unknown on line 0

file.php contains

<?php echo 'test'; ?>


Attempting to access the network file using

<?php fopen('//computer/path/to/file.php','r'); ?>

returns the following warning:

Warning: fopen("//computer/path/to/file.php","r") - No such file or directory in f:/webpages/pub/a/test.php on line 1


This indicates that, while Apache is able to access this file, PHP is not able to parse it, or, in fact, access any network files in this manner.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-05 00:05 UTC] sniper@php.net
This is fixed in PHP 4.0.6 (in RC2 atm).
In the meantime you can get binary builds of PHP 4.0.7-dev here:

http://www.zend.com/snapshots/

So just wait until 4.0.6 is released.

--Jani



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC