php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78359 Php cannot access to other files when executed from OneDrive
Submitted: 2019-07-31 21:29 UTC Modified: 2019-07-31 21:34 UTC
From: 0ddlyokoOfficial at gmail dot com Assigned:
Status: Duplicate Package: *Directory/Filesystem functions
PHP Version: Irrelevant OS: Windows
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: 0ddlyokoOfficial at gmail dot com
New email:
PHP Version: OS:

 

 [2019-07-31 21:29 UTC] 0ddlyokoOfficial at gmail dot com
Description:
------------
Tested versions:
- php7.1.9
- php7.1.31
- php7.2.5

Php cannot read other files if these files are on OneDrive.
This error occures because of the May 2019 update.

After some researches, it seams this guy has the same problem:
https://stackoverflow.com/questions/56791646/php-file-loading-or-listing-operations-not-working
This bug has already been reported but without answers:
https://bugs.php.net/bug.php?id=78220


Test script:
---------------
test.php:

<?php
	include("test2.php");
?>

test2.php:

<?php
	echo "Hello world";
?>

These both files MUST be in the OneDrive folder

Expected result:
----------------
Hello world

Actual result:
--------------
Warning: include(test2.php): failed to open stream: No such file or directory in test.php on line 2

Warning: include(): Failed opening 'test2.php' for inclusion (include_path='.;C:\php\pear') in test.php on line 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-31 21:34 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC