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
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: famzah at icdsoft dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 15:01:27 2025 UTC