php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17146 session_start don't create sess_* file
Submitted: 2002-05-10 17:59 UTC Modified: 2002-05-10 18:09 UTC
From: smurf at volny dot cz Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.0 OS: Linux 2.4.18
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: smurf at volny dot cz
New email:
PHP Version: OS:

 

 [2002-05-10 17:59 UTC] smurf at volny dot cz
I have compiled apache 2.0 with PHP 4.2.0

When I try start session PHP return warning:
Warning: open(/tmp/sess_*, O_RDWR) failed: Invalid argument (22) in xx on line y

Warning: open(/tmp/sess_*, O_RDWR) failed: Invalid argument (22) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

I'am really sure that in php.ini I have right path and the directory have sufficient access right. 

Before than I upgrate to PHP 4.2.0 all get fine (last function version was PHP 4.1.2, Apache 1.3.24). 

I'am using for testing this script:
<?php
session_start();
if (isset($HTTP_SESSION_VARS['count'])) {
   $HTTP_SESSION_VARS['count']++;
}
else {
   $HTTP_SESSION_VARS['count'] = 0;
}
?>

I hope that I don't trouble you with my mistake.

Best regards
   Radek

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 18:01 UTC] rasmus@php.net
Thanks for the bug report, but Apache2 is not supported yet.  If you can reproduce the same problem using PHP 4.2.0 against Apache 1.3.x please let us know.  Apache2+PHP is not fully baked yet and there are still many issues to work out.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 30 17:00:02 2025 UTC