From: php at tjworld dot org
Operating system: Windows 2003 Server Enterprise
PHP version: 4.3.7
PHP Bug Type: Session related
Bug description: session.save_path appears to be ignored
Description:
------------
session.save_path appears to be ignored even though phpinfo() shows that
the correct php.ini file, and session.save_path are set.
As a result a PHP warning is returned in the head of the HTML of files
that call session.start() and a session dat file isn't created in
session.save_path.
Using IIS6, in IIS 5 isloation mode. Executing cgi.exe not the ISAPI
filter.
Working with a clean install of osCommerce 2.2m2.
Non-session code appears to work.
Permissions on the session.save_path directory are set to allow
modify/read/write by the IUSR_MACHINE_NAME account.
phpinfo() confirms the config file as:
C:\Windows\php.ini
[PHP]
register_globals = On
[Session]
session.save_path = D:\Server\PHP4\sessiondata\
Using System Internals FileMonitor shows that php.exe is attempting to
open/write to D:\tmp\?????? even when phpinfo() shows that
session.save_path is set as shown above. No attempts to access
session.save_path are shown.
Reproduce code:
---------------
function tep_session_start() {
return session_start();
}
Expected result:
----------------
Expect to see session data files in session.save_path, and no warnings
reported.
Actual result:
--------------
When D:\tmp (with appropriate permissions) exists the HTML returns with no
warnings in the HEAD, and a session data file is created in the
directory.
If D:\tmp doesn't exist, no session data file is created and warnings are
returned in the HTML HEAD:-
Warning: session_start():
open(/tmp\sess_fdbfaf6a09ec7734f73e7ac88dfd00be, O_RDWR) failed: No such
file or directory (2) in
D:\Inetpub\hostingRoot\domain\http\members\catalog\admin\includes\functions\sessions.php
on line 67
--
Edit bug report at http://bugs.php.net/?id=28724&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28724&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28724&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28724&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28724&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28724&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28724&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28724&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28724&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28724&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28724&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28724&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28724&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28724&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28724&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28724&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28724&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28724&r=float