Bug #72687 [NEW]: "/" no more pointing to root directory

From: Date: Wed, 27 Jul 2016 14:34:07 +0000
Subject: Bug #72687 [NEW]: "/" no more pointing to root directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202638@lists.php.net to get a copy of this message
From: marc dot lazzaro at st dot com Operating system: Windows 7 PHP version: 7.0.9 Package: Filesystem function related Bug Type: Bug Bug description:"/" no more pointing to root directory 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 bug report at https://bugs.php.net/bug.php?id=72687&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72687&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72687&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72687&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72687&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72687&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72687&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72687&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72687&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72687&r=support Expected behavior: https://bugs.php.net/fix.php?id=72687&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72687&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72687&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72687&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72687&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72687&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72687&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72687&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72687&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72687&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72687&r=mysqlcfg

« previous php.bugs (#202638) next »