php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51470 Files on NTFS Mounted Volumes inaccessible
Submitted: 2010-04-04 07:33 UTC Modified: 2013-02-18 00:34 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: benjamin at gnbit dot com Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.3.2 OS: 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: benjamin at gnbit dot com
New email:
PHP Version: OS:

 

 [2010-04-04 07:33 UTC] benjamin at gnbit dot com
Description:
------------
Description:
------------
Server Web: Linux Fedora 12 
Partition: ext4
Apache 2.0
PHP 5.3.2

Server File: Windows Server 2008  
Partition: Ntfs  

mount windows files in linux using Samba,
example:
mount -t cifs -o 
username=linux,password=###,rw,exec,dev,ntfs,iocharset=utf8,dir_mode=0777,file_m
ode=0777  //192.168.1.70/files  /var/www/html/winsamba/
 

include, reqire and include_path files the seem inaccessible to PHP 5.3.2 (5.2.x 
version do not show this problem)



Test script:
---------------
require_once "Initializer.php";

Expected result:
----------------
including

Actual result:
--------------
Warning: require_once(Initializer.php) [function.require-once]: failed to open 
stream: No such file or directory in /var/www/html/winsamba/files/bootstrap.php 
on line 47

Fatal error: require_once() [function.require]: Failed opening required 
'Initializer.php' in /var/www/html/winsamba/files/bootstrap.php on line 47



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-04 17:48 UTC] benjamin at gnbit dot com
absolute paths work, but relative paths do not work
 [2010-05-19 14:56 UTC] mike@php.net
-Status: Open +Status: Feedback -Package: Systems problem +Package: Filesystem function related
 [2010-05-19 14:56 UTC] mike@php.net
Recalssified.

Is Initializer.php within your include_path?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2014-06-11 06:17 UTC] ken at kennethdoyle dot net
So this issue is seemingly mitigated by mounting the CIFS share with the "noserverino" option.

Workaround taken from this page here:

http://www.php.net//manual/en/function.is-dir.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC