ID:               41510
 User updated by:  damian at 1do1 dot pl
 Reported By:      damian at 1do1 dot pl
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: FreeBSD 5.5
 PHP Version:      4.4.7
 New Comment:

It worked on PHP 4.4.4.

In ini session.save_path is set to /home/var/tmp so why the script is
trying to save in /var/tmp? 
"File(/var/tmp/) is not within the allowed
path(s):"


Previous Comments:
------------------------------------------------------------------------

[2007-05-27 14:36:53] [EMAIL PROTECTED]

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?

------------------------------------------------------------------------

[2007-05-27 08:19:38] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41510&edit=1

Reply via email to