Bug #69127 [NEW]: session_regenerate_id(true) randomly generates a warning and loses session data
From: rbsimao at yahoo dot com dot br
Operating system: debian7, ubuntu11-12-13-14, win7
PHP version: 5.5.22
Package: Session related
Bug Type: Bug
Bug description:session_regenerate_id(true) randomly generates a warning and loses session data
Description:
------------
---
From manual page: http://www.php.net/function.session-regenerate-id
---
The piece of code below works ok most of the time. Randomly it does not
work: session_regenerate_id(true) issues a warning saying it could not
delete the old session data. But the session file is there and the
permissions are untouched. Also, when it issues the warning, all the
session data is lost on the new generated session.
Tested on ubuntu11 to ubuntu14 with default phps and windows 7/php5.5.
Test script:
---------------
<?php
session_start();
session_regenerate_id(true);
session_write_close();
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=69127&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69127&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69127&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69127&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69127&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69127&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69127&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69127&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69127&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69127&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69127&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69127&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69127&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69127&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69127&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69127&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69127&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69127&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69127&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69127&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69127&r=mysqlcfg
Thread (12 messages)
- rbsimao at yahoo dot com dot br
- yohgaki@php.netBug #69127 [Opn->Ver]: session_regenerate_id(true) randomly generates a warning and loses session data
- yohgaki@php.netBug #69127 [Ver]: session_regenerate_id(true) randomly generates a warning and loses session data
- yohgaki@php.netBug #69127 [Ver]: session_regenerate_id(true) randomly generates a warning and loses session data
- yohgaki@php.netBug #69127 [Ver]: session_regenerate_id(true) randomly generates a warning and loses session data
- yohgaki@php.netBug #69127 [Ver->Ana]: session_regenerate_id(true) randomly generates a warning and loses session data
- yohgaki@php.netBug #69127 [Ana]: session_regenerate_id(true) randomly generates a warning and loses session data
- jolyon at nixbox dot comBug #69127 [Com]: session_regenerate_id(true) randomly generates a warning and loses session data
- jolyon at nixbox dot comBug #69127 [Com]: session_regenerate_id(true) randomly generates a warning and loses session data
- jolyon at nixbox dot comBug #69127 [Com]: session_regenerate_id(true) randomly generates a warning and loses session data
- kalle@php.netBug #69127 [Ana->Asn]: session_regenerate_id(true) randomly generates a warning and loses session data
- cmb@php.netBug #69127 [Asn]: session_regenerate_id(true) randomly generates a warning and loses session data