Bug #77083 [Opn->Nab]: Fatal error: Access to stat is denied because its trying to access restricted
| From: | requinix@php.net | Date: | Tue, 30 Oct 2018 05:57:27 +0000 |
| Subject: | Bug #77083 [Opn->Nab]: Fatal error: Access to stat is denied because its trying to access restricted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217747@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77083&edit=1
ID: 77083
Updated by: requinix@php.net
Reported by: vallabh53 at gmail dot com
Summary: Fatal error: Access to stat is denied because its
trying to access restricted
-Status: Open
+Status: Not a bug
Type: Bug
Package: Filesystem function related
Operating System: Linux
PHP Version: 5.6.38
Block user comment: N
Private report: N
New Comment:
Contact your hosting provider.
Previous Comments:
------------------------------------------------------------------------
[2018-10-30 05:56:22] vallabh53 at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=77083&edit=1