From:             don dot lebert at gmail dot com
Operating system: Windows 2003 SP2
PHP version:      5.2.5
PHP Bug Type:     Filesystem function related
Bug description:  PHP needs list folder access ofr all directories leading up 
to the script dir

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 bug report at http://bugs.php.net/?id=43309&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43309&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43309&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43309&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43309&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43309&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43309&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43309&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43309&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43309&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43309&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43309&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43309&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43309&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43309&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43309&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43309&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43309&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43309&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43309&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43309&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43309&r=mysqlcfg

Reply via email to