#46925 [Opn->Asn]: when open_basedir="." the working directory is set to the executable location
| From: | dmitry@php.net | Date: | Mon, 22 Dec 2008 12:24:26 +0000 |
| Subject: | #46925 [Opn->Asn]: when open_basedir="." the working directory is set to the executable location | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132253@lists.php.net to get a copy of this message | ||
ID: 46925
Updated by: dmitry@php.net
Reported By: eyal at zend dot com
-Status: Open
+Status: Assigned
Bug Type: Safe Mode/open_basedir
Operating System: Windows *
PHP Version: 5.2.8
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2008-12-22 11:55:29] eyal at zend dot com
Description:
------------
NOTE: Tested with FastCGI module on IIS 7.
1. Verify you have info.php in your docroot.
2. Set the directive open_basedir="."
3. Request the script info.php
Reproduce code:
---------------
<?php phpinfo(): ?>
Expected result:
----------------
The phpinfo() output
Actual result:
--------------
PHP Warning: Unknown: open_basedir restriction in effect.
File(C:\inetpub\wwwroot\info.php) is not within the allowed path(s): (.)
in Unknown on line 0
To verify the location that is not restricted you can do the
following:
Add a virtual directory to the default web site with a physical path of
the php-fastCGI.exe and put the info.php there as well.
Now you can see that when requesting the file from the virtual
directory you will receive the phpinfo() output.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46925&edit=1