[PHP-BUG] Bug #51594 [NEW]: open_basedir reports fatal error within allowed path

[email protected] ("daniel at produktion203 dot se")
Newsgroups php.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.