From: [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version: 4.2.0
PHP Bug Type: Session related
Bug description: session_start don't create sess_* file
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
--
Edit bug report at http://bugs.php.net/?id=17146&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17146&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17146&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17146&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17146&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17146&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17146&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17146&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17146&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17146&r=globals