Bug #79470 [PATCH]: PHP incompatible with 3rd party file system on demand

From: Date: Fri, 24 Apr 2020 15:36:48 +0000
Subject: Bug #79470 [PATCH]: PHP incompatible with 3rd party file system on demand
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226761@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79470&edit=1 ID: 79470 Patch added by: cmb@php.net Reported by: gilbertjgonzales at gmail dot com Summary: PHP incompatible with 3rd party file system on demand Status: Assigned Type: Bug Package: *Directory/Filesystem functions Operating System: Windows 10 PHP Version: 7.3Git-2020-04-13 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: The following pull request has been associated: Patch Name: Fix #79470: PHP incompatible with 3rd party file system on demand On GitHub: https://github.com/php/php-src/pull/5451 Patch: https://github.com/php/php-src/pull/5451.patch Previous Comments: ------------------------------------------------------------------------ [2020-04-13 18:23:56] gilbertjgonzales at gmail dot com Hi. A self-compiled version of php-src-PHP-7.1.9 is being used at the office which is now patched to support the non-public file system using Reparse Tags. This fix is the only change we've made. However at the office 'master' was tested as well and had the same issue mentioned in the bug report. The winver displays: Version 1803 (OS Build 17134.885) ------------------------------------------------------------------------ [2020-04-13 14:00:48] cmb@php.net Ah, noticed the pull request, which answers my question regarding the PHP version. ------------------------------------------------------------------------ [2020-04-13 14:00:06] cmb@php.net The following pull request has been associated: Patch Name: Fixed bug #79470: PHP incompatible with 3rd party file system on demand On GitHub: https://github.com/php/php-src/pull/5379 Patch: https://github.com/php/php-src/pull/5379.patch ------------------------------------------------------------------------ [2020-04-13 09:57:56] cmb@php.net Thanks for reporting! Likely hard to debug without actually having access to such file system. Anyhow, are you using a self-compiled PHP, or an official build (from windows.php.net)? If the latter, what's the exact version and variant (file name)? Also what is the exact Windows version and build number (like shown by winver)? ------------------------------------------------------------------------ [2020-04-13 07:07:58] gilbertjgonzales at gmail dot com Description: ------------ Similar to bug https://bugs.php.net/bug.php?id=75384 which affected OneDrive, 3rd party file systems that use Reparse Tags are failing to open files for files that are fetched "On Demand." Currently any third party file system using Reparse Tags will fail unless added explicitly for handling in PHP ( such as the OneDrive bugfix 75384 ). Test script: --------------- 1) Use 3rd party file system ( such as one created by company X ) using custom Reparse Tag 2) Store files using third party file system with "Fetch On Demand" feature implemented via custom Reparse Tag Then in folder mapped to third party file system, create 2 files Foo.php <?php require 'Bar.php'; Bar.php <?php echo 'Require worked'; Then run php Foo.php Expected result: ---------------- See "Require worked" output to the screen Actual result: -------------- PHP Warning: require(Bar.php): failed to open stream: No such file or directory in Foo.php on line 2 Warning: require(Bar.php): failed to open stream: No such file or directory in F oo.php on line 2 PHP Fatal error: require(): Failed opening required 'Bar.php' (include_path='.; C:\php\pear') in Foo.php on line 2 Fatal error: require(): Failed opening required 'Bar.php' (include_path='.;C:\ph p\pear') in Foo.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79470&edit=1

« previous php.bugs (#226761) next »