#43309 [Opn->Fbk]: PHP needs list folder access of all directories leading up to the script dir
| From: | jani@php.net | Date: | Tue, 08 Apr 2008 11:38:51 +0000 |
| Subject: | #43309 [Opn->Fbk]: PHP needs list folder access of all directories leading up to the script dir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124079@lists.php.net to get a copy of this message | ||
ID: 43309
Updated by: jani@php.net
Reported By: don dot lebert at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Windows 2003 SP2
PHP Version: 5.2CVS-2007-11-15
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-01-23 22:04:55] 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.
------------------------------------------------------------------------
[2007-11-15 23:07:26] don dot lebert at gmail dot com
Thank you for your timely reply; unfortunately, the problem persists
after making use of the CVS.
------------------------------------------------------------------------
[2007-11-15 22:35:28] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43309&edit=1