From:             bla at cs dot huji dot ac dot il
Operating system: freebsd 6.1
PHP version:      5.1.4
PHP Bug Type:     Session related
Bug description:  session_save_directory checks wrong directory in safe mode

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

Reply via email to