|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-28 21:39 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ Pages using include() and require() are not finding files that are present using ISAPI. They are also not entirely working using CGI. The same pages are processed via CLI without incident. This bug may need to be split. Reproduce code: --------------- Running ISAPI, I created a page in the web root with the following code: <? // current directory echo getcwd() . "\n"; phpinfo(); ?> Expected result: ---------------- Using the CLI, pages with includes/requires load successfully and output code as expected without any warnings about files being missing or unavailable. I expect the same from running either ISAPI or CGI. These pages (and their permission sets) ran fine <= 5.1.6. Actual result: -------------- Repeatedly loading this page in a browser under ISAPI generates either the w3svc root (c:/windows/inetserv or equiv.) or else a random directory beyond the actual web root being loaded from (e:\webroot\images.) As a result, a page in the root called "bob.php" that runs include("./mary.php") fails, stating it is unable to find Mary. Loading this page under CGI generates the correct root for the main document being loaded, but does not seem to traverse directories well - a page locatied in root called "bob.php" will include('./mary.php') successfully, but when ./mary.php tries to include('/steve.php') it fails, citing that it cannot find '/steve.php'.