|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-27 08:19 UTC] damian at 1do1 dot pl
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 03:00:01 2025 UTC |
What is the point of this in your reproduce script: define('SESSION_DIR', ''); session_save_path(SESSION_DIR); ??? Of course that won't work. Why should it? And are there by any chance any symlinks in the /home/var/tmp path?