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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Wed Apr 24 07:01:29 2024 UTC