php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42460 Working directory reporting inconsistent
Submitted: 2007-08-28 14:29 UTC Modified: 2007-08-28 21:39 UTC
From: jgorny at orthodoxmarketplace dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.3 OS: Windows 2003 Server
Private report: No CVE-ID: None
 [2007-08-28 14:29 UTC] jgorny at orthodoxmarketplace dot com
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'.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-28 21:39 UTC] jani@php.net
We are aware of PHP's problems with stability under IIS and are working 
to rectify the problem. Unfortunatly your bug report does not contain any
extra useful information and we already have enough bug reports open about
this issue. If you can provide more detailed information such as a 
reproducable crash or a backtrace please do so and reopen this bug. 
Otherwise please keep trying new releases as we are working to resolve 
the problems on this platform
 
Thanks for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC