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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 27 = ?
Subscribe to this entry?

 
 [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: Tue Apr 23 18:01:34 2024 UTC