From:
Operating system: FreeBSD 8.0-RELEASE-p2
PHP version: 5.3.2
Package: Safe Mode/open_basedir
Bug Type: Bug
Bug description:open_basedir reports fatal error within allowed path
Description:
------------
There seems to be some problem with open_basedir in php 5.3.2 for freebsd,
i used the 5.2 branch before and the exact same config worked fine then.
open_basedir reports failure eventhough im within the allowed paths
Include paths in php.ini:
include_path = ".:/usr/local/share/pear:/usr/local/lib/php/include"
Testhost in apache:
<VirtualHost *:80>
DocumentRoot "/home/customers/produktion203/testin.se"
ServerName testin.se
php_admin_value open_basedir
/home/customers/produktion203/testin.se:/usr/local/share/pear:/usr/local/lib/php/include:/var/tmp
</VirtualHost>
Test script:
---------------
<?php
phpinfo();
Expected result:
----------------
Show the phpinfo();
Actual result:
--------------
Warning: Unknown: open_basedir restriction in effect. File() is not within
the allowed path(s):
(/home/customers/produktion203/testin.se:/usr/local/share/pear:/usr/local/lib/php/include:/var/tmp)
in Unknown on line 0
Fatal error: Can't load /home/customers/produktion203/testin.se/nfo.php,
open_basedir restriction. in Unknown on line 0
--
Edit bug report at http://bugs.php.net/bug.php?id=51594&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51594&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51594&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51594&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51594&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51594&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51594&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51594&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51594&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51594&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51594&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51594&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51594&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51594&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51594&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51594&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51594&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51594&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51594&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51594&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51594&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51594&r=mysqlcfg