php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43309 PHP needs list folder access of all directories leading up to the script dir
Submitted: 2007-11-15 22:35 UTC Modified: 2008-04-16 01:00 UTC
Votes:9
Avg. Score:4.4 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:6 (66.7%)
Same OS:7 (77.8%)
From: don dot lebert at gmail dot com Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.2CVS-2007-11-15 OS: Windows 2003 SP2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-11-15 22:35 UTC] don dot lebert at gmail dot com
Description:
------------
As of php 5.2.4 the language suddenly wants full pathing rights to where ever the .php file is run. The best way to see this problem is to use as simple script, no point in getting all complicated. What I have setup is a D:\inetpub folder which only has administrator and system rights. Within there I have the websites, so lets say wwwroot. This site has rights for Administrator, System, and the Internet Guest Account. Within this wwwroot I have a test.php, which contents are:

<?php echo getcwd(); ?>

Typically(Pre php 5.2.4) this would return D:\inetpub\wwwroot(The directory from which the script was run via IIS, and the way I imagine it should work)

As of PHP 5.2.4 and above, this now returns C:\windows\system32\inetsrv

The reason? PHP now wants to have 'List Folder Contents' Access to D:\Inetpub for users.






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-15 23:07 UTC] don dot lebert at gmail dot com
Thank you for your timely reply; unfortunately, the problem persists after making use of the CVS.
 [2008-01-23 22:04 UTC] don dot lebert at gmail dot com
Just sort of a follow up:

PHP 5.2.5 still acts this way, as does the latest php6.
 [2008-04-08 11:38 UTC] jani@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2008-04-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC