From:             damian at 1do1 dot pl
Operating system: FreeBSD 5.5
PHP version:      4.4.7
PHP Bug Type:     Session related
Bug description:  open_basedir restriction in effect. File(/var/tmp/)

Description:
------------
Hello,
After upgrade from PHP 4.4.4 to 4.4.7 I am having this error in my
aplication i've read that this bug was fixed but I think something is
wrong.

I have all set in my ini 
open_basedir = /home
session.save_path = /home/var/tmp

I haven't change anything only upgrade and everything crush.

Reproduce code:
---------------
$sessionpath = session_save_path();
define('SESSION_DIR', '');
session_save_path(SESSION_DIR);
session_name('test');
session_start();
echo '<br>session_save_path - ' .$sessionpath;

Actual result:
--------------
Warning: session_start() [function.session-start]: open_basedir
restriction in effect. File(/var/tmp/) is not within the allowed path(s):
(/home) in /usr/home/xxx/public_html/test.php on line 8

Fatal error: session_start() [<a
href='function.session-start'>function.session-start</a>]: Failed to
initialize storage module: files (path: ) in
/usr/home/xxx/public_html/test.php on line 8

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

Reply via email to