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

Can You answer to my question?

How can I change this default path? Can I change it in my PHP
configuration or only way is too change all scripts?


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

[2007-05-31 09:09:59] [EMAIL PROTECTED]

session.save_path in php.ini is what it is. If you want to use that,
don't call session_save_path() at all.

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

[2007-05-27 18:23:47] damian at 1do1 dot pl

OK. How can I change this default path?

So what for is 'session.save_path' in PHP.INI now?

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

[2007-05-27 17:45:39] [EMAIL PROTECTED]

If that worked in 4.4.4, it was bug that got fixed. 
If you set the save path to '' (empty string), default tmp path will be
used which is /var/tmp in your system. This is not any bug.

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

[2007-05-27 17:06:03] damian at 1do1 dot pl

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):"

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

[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?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/41510

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

Reply via email to