From:             [EMAIL PROTECTED]
Operating system: FreeB SD 4.4
PHP version:      4.2.1
PHP Bug Type:     Scripting Engine problem
Bug description:  open_basedir warning when including file in same dir

I have set open_basedir =
/home/user

I have set include_path = 
.:/home/user/lib:/home/user/site/lib

I have a file located in:
/home/user/site/htdocs/

which requires another file in the same directory.
<?php require_once('file2.php'); ?>

The include WORKS.

BUT IT PRODUCED A WARNING:

Warning: open_basedir restriction in effect. File is in wrong directory in
/home/user/site/htdocs/file1.php on line 3 File2 is here.

The "File2 is here" is produced by the included file.

I've seen others comment on this problem, but could find no solution or
open occurance of it in the bug list.

Thanks.

Mitch.
-- 
Edit bug report at http://bugs.php.net/?id=17445&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17445&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17445&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17445&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17445&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17445&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17445&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17445&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17445&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17445&r=globals

Reply via email to