|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-27 16:15 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2016-07-27 16:15 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
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?