php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39842 Windows installer sets non existing session.save_path
Submitted: 2006-12-15 09:15 UTC Modified: 2008-08-22 17:38 UTC
From: php at ahlenstorf dot ch Assigned: jmertic (profile)
Status: Closed Package: Windows Installer
PHP Version: 5.2.0 OS: Windows XP SP2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at ahlenstorf dot ch
New email:
PHP Version: OS:

 

 [2006-12-15 09:15 UTC] php at ahlenstorf dot ch
Description:
------------
The Windows Installer of PHP 5.2.0 creates a php.ini with prefilled upload_tmp_dir and session.save_path settings.
Both point to directories within the temporary directory in the user profile like Temp\php\upload or Temp\php\session. Unfortunately neither the Windows Installer nor PHP (+Apache 2.2.3) itself create these directories. 

Expected result:
----------------
Either valid php.ini settings or a warning at the end of the installer including empty php.ini settings (so that's easier to spot what's wrong).

Actual result:
--------------
Neither sessions nor file uploads work. Excerpt from Apache's error.log:

[Fri Dec 15 10:05:20 2006] [error] [client 127.0.0.1] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOKUME~1\\ADMINI~1\\LOKALE~1\\Temp\\php\\upload\\sess_n1ab9mml2m000pjl4ciq20gdl0, O_RDWR) failed: No such file or directory (2) in C:\\Webserver\\core\\base_classes\\session.class.php on line 106

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-18 16:37 UTC] jmertic@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC