Bug #77083 [NEW]: Fatal error: Access to stat is denied because its trying to access restricted

From: Date: Tue, 30 Oct 2018 05:56:23 +0000
Subject: Bug #77083 [NEW]: Fatal error: Access to stat is denied because its trying to access restricted
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217746@lists.php.net to get a copy of this message
From: vallabh53 at gmail dot com Operating system: Linux PHP version: 5.6.38 Package: Filesystem function related Bug Type: Bug Bug description:Fatal error: Access to stat is denied because its trying to access restricted Description: ------------ --- From manual page: https://php.net/function.stat --- The command stat($file_path) returns the following error. Fatal error: Access to stat is denied because its trying to access restricted folders and the PHP Version is 5.6.31. Where as the same script works in the other server with lower versions of php. Test script: --------------- <?php $filedata = stat('/vhosts/day107_18110/robots.txt'); Expected result: ---------------- It should return file information Actual result: -------------- Getting below fatal error: Fatal error: Access to stat is denied because its trying to access restricted folders -- Edit bug report at https://bugs.php.net/bug.php?id=77083&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77083&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77083&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77083&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77083&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77083&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77083&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77083&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77083&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77083&r=support Expected behavior: https://bugs.php.net/fix.php?id=77083&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77083&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77083&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77083&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77083&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77083&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77083&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77083&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77083&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77083&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77083&r=mysqlcfg

« previous php.bugs (#217746) next »