Ask a Question related to PHP Bugs, Design and Development.
-
iliaa@php.net #1
#37627 [Opn->Csd]: session_save_directory checks wrong directory in safe mode
ID: 37627
Updated by: [email]iliaa@php.net[/email]
Reported By: bla at cs dot huji dot ac dot il
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: freebsd 6.1
PHP Version: 5.1.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
[url]http://snaps.php.net/[/url].
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-05-30 07:38:52] bla at cs dot huji dot ac dot il
This is the 3rd time I write this reply, it keeps disappearing after I
submit it. Anyway:
Appending a '/' to the path fixes the problem, thanks.
However it should work even without a trailing '/' just like any other
path related setting.
------------------------------------------------------------------------
[2006-05-29 12:46:17] [email]tony2001@php.net[/email]
/var/spool/session or /var/spool/sessions ?>Note that /var/spool/session exists and has the right
> permissions so there's no need to modify /var/spool).
What if try this:
session_save_path("/var/spool/sessions/"); ?
------------------------------------------------------------------------
[2006-05-29 12:34:06] bla at cs dot huji dot ac dot il
Description:
------------
When I run this command:
session_save_path("/var/spool/sessions");
I get:
session_save_path() [function.session-save-path]: SAFE MODE Restriction
in effect. The script whose uid is 24713 is not allowed to access
/var/spool
The information in the message is correct but I suppose the function
should check /var/spool/sessions, not /var/spool. (note that
/var/spool/session exists and has the right permissions so there's no
need to modify /var/spool).
Probably the OnUpdateSaveDir() function in session.c should give a
different flag to php_checkuid().
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=37627&edit=1[/url]
iliaa@php.net Guest
-
#18500 [Com]: Safe mode: php reports wrong uid on file
ID: 18500 Comment by: ksvee at usit dot uio dot no Reported By: b dot courtin at t-online dot net Status: No... -
What is Freebsd 5.3 safe mode ?
I have installed Freebsd 5.3. When the machine boots up, it gives me several options if I want to boot up in Default Mode, Safe Mode, Single User... -
SAFE MODE
Hi Bill, Hit F8 at boot to access the boot options. -- Best of Luck, Rick Rogers aka "Nutcase" MS-MVP - Win9x... -
What exactly is safe mode?
Hello, Can someone point me to somewhere that explains what safe mode is and why it's good to have it on or off? Tried to get an explanation on... -
Can't log in to Safe Mode
Thanks, I'll give that a try! Michael "Rick "Nutcase" Rogers" <rick@mvps.org> wrote in message news:%23RJyfWjPDHA.1584@TK2MSFTNGP11.phx.gbl......



Reply With Quote

