Bug #78159 [NEW]: UNC | is_readable false | file_exists true | file_get_contents can read

From: Date: Thu, 13 Jun 2019 20:03:28 +0000
Subject: Bug #78159 [NEW]: UNC | is_readable false | file_exists true | file_get_contents can read
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221295@lists.php.net to get a copy of this message
From: d at pilichiewicz dot pl Operating system: Windows 10 1903 x64 PHP version: 7.3.6 Package: *Directory/Filesystem functions Bug Type: Bug Bug description:UNC | is_readable false | file_exists true | file_get_contents can read Description: ------------ Hello, iam working on an diskstation by synergy connected with an windows domain ... while creating an symfony project ive got a failure message shown me that .env coulnd read. ive tested some scripts and yeah ... php has an problem there ... $filename = this file is on an network share assign to Z: var_dump(is_readable($filename)); = is false ... dunny why var_dump(is_writeable($filename)); = is false, too var_dump(is_dir($filename)); = is false, too var_dump(file_exists($filename)); = is true var_dump(file_get_contents($filename)); = read file content and display it In Process Monitor ive recorded what happend while running the test script (with sleep 10 seconds to see that happend where) https://gist.github.com/privatehosting/3dd6876ffe4fc46100089d64d39171b2 Please excuse my English Test script: --------------- <?php $filename = "Z:\Programmierung\php_pilichiewicz_cms/.env"; var_dump($filename); sleep(10); var_dump(is_readable($filename)); sleep(10); var_dump(is_writeable($filename)); sleep(10); var_dump(is_dir($filename)); sleep(10); var_dump(file_exists($filename)); sleep(10); var_dump(file_get_contents($filename)); ?> Expected result: ---------------- is_readable & is_writeable & is_dir should be true if file exists Actual result: -------------- is_readable & is_writeable & is_dir are false -- Edit bug report at https://bugs.php.net/bug.php?id=78159&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78159&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78159&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78159&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78159&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78159&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78159&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78159&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78159&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78159&r=support Expected behavior: https://bugs.php.net/fix.php?id=78159&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78159&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78159&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78159&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78159&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78159&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78159&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78159&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78159&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78159&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78159&r=mysqlcfg

« previous php.bugs (#221295) next »