Bug #72156 [NEW]: session_regenerate_id(): Session object destruction failed. ID: user (path: /v

From: Date: Wed, 04 May 2016 14:23:19 +0000
Subject: Bug #72156 [NEW]: session_regenerate_id(): Session object destruction failed. ID: user (path: /v
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200891@lists.php.net to get a copy of this message
From:             dimitar dot kudev at netea dot bg
Operating system: Ubuntu 16.04
PHP version:      7.0.6
Package:          Session related
Bug Type:         Bug
Bug description:session_regenerate_id(): Session object destruction failed.  ID: user (path: /v

Description:
------------
1. Apache/2.4.18 (Ubuntu)
2. PHP 7.0.4-7ubuntu2
3. 10.0.24-MariaDB-7 Ubuntu 16.04


Type: warning 	
File: /var/www/dragon/library/Zend/Session.php 	
Line: 315 	
Message: session_regenerate_id(): Session object destruction failed. 
ID: user (path: /var/lib/php/sessions)
---
From manual page: http://www.php.net/function.session-regenerate-id
---


Test script:
---------------
public static function regenerateId()
    {
        if (!self::$_unitTestEnabled && headers_sent($filename,
$linenum)) {
            /** @see Zend_Session_Exception */
            require_once 'Zend/Session/Exception.php';
            throw new Zend_Session_Exception("You must call " .
__CLASS__ . '::' . __FUNCTION__ .
                "() before any output has been sent to the browser;
output started in {$filename}/{$linenum}");
        }

        if ( !self::$_sessionStarted ) {
            self::$_regenerateIdState = -1;
        } else {
            if (!self::$_unitTestEnabled) {
                session_regenerate_id(true);
            }
            self::$_regenerateIdState = 1;
        }
    }


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72156&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72156&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72156&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72156&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72156&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72156&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72156&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72156&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72156&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72156&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72156&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72156&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72156&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72156&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72156&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72156&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72156&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72156&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72156&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72156&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72156&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#200891) next »