php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45363 session_destroy, "Failed to initialize storage module", custom session handler
Submitted: 2008-06-26 10:53 UTC Modified: 2008-07-02 10:09 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: famzah at icdsoft dot com Assigned:
Status: Wont fix Package: Session related
PHP Version: 5.2.6 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-06-26 10:53 UTC] famzah at icdsoft dot com
Description:
------------
I want to re-open bug #32330 (http://bugs.php.net/bug.php?id=32330). The problem still persists even though PHP developers stated that it was fixed.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-01 10:05 UTC] famzah at icdsoft dot com
OK, I will copy the information from bug #32330

Reproduce code:
---------------
<?php
	function dummy() { }

	session_set_save_handler('dummy', 'dummy', 'dummy', 'dummy', 'dummy', 'dummy');

	session_start();
	session_destroy();
	# comment in the next line and the test works
	#session_set_save_handler('dummy', 'dummy', 'dummy', 'dummy', 'dummy','dummy');
	session_start();
?>

Expected result:
----------------
No fatal error message

Actual result:
--------------
Fatal error: session_start(): Failed to initialize storage module: user


You can see the rest in bug #32330. Tested with PHP 5.2.6 and PHP 5.2.5.
 [2008-07-02 10:09 UTC] jani@php.net
The fix was considered too huge change for the PHP 5.2 series and was not merged from the PHP 5.3 branch. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC