Bug #72687 [Opn->Nab]: "/" no more pointing to root directory
| From: | ab@php.net | Date: | Wed, 27 Jul 2016 16:15:58 +0000 |
| Subject: | Bug #72687 [Opn->Nab]: "/" no more pointing to root directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202640@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72687&edit=1
ID: 72687
Updated by: ab@php.net
Reported by: marc dot lazzaro at st dot com
Summary: "/" no more pointing to root directory
-Status: Open
+Status: Not a bug
Type: Bug
Package: Filesystem function related
Operating System: Windows 7
PHP Version: 7.0.9
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
A path like /file.txt is relative to the CWD drive root. Say, if CWD is c:\hello, then \file.txt
will resolve to c:\file.txt.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2016-07-27 14:34:04] marc dot lazzaro at st dot com
Description:
------------
include ("/test.php") throws this warning:"failed to open stream: No such file or
directory in D:\root\subdir\myfile.php"
and also this one: Failed opening '/test.php' for inclusion
(include_path='.;D:\root') in D:\root\subdir\myfile.php
This issue appeared when upgrading from PHP 7.0.2 to 7.0.8(22/06/16) keeping php.ini unchanged. I
had to replace by include ($_SERVER['DOCUMENT_ROOT']."test.php") to recover
normal behavior.
Test script:
---------------
<?php
include ("/test.php");
or
include_once ("/test.php");
or
require_once ("/test.php");
?>
Expected result:
----------------
Is this a bug?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72687&edit=1