|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4842 session errors with exit in write function
Submitted: 2000-06-06 20:04 UTC Modified: 2000-07-11 05:46 UTC
From: abush at microcenter dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 Release OS: RedHat 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: abush at microcenter dot com
New email:
PHP Version: OS:


 [2000-06-06 20:04 UTC] abush at microcenter dot com
Compiled php4.0.0 into apache_1.3.12.

If an exit is placed inside of the "write" function which is initialized with session_set_save_handler() the following error is printed continuously.

Fatal error: ht=08193b64 is already destroyed in zend_hash.c:519 in Unknown on line 0

<!-- -->
Function sess_write($key, $val) {


<!-- end -->

<!-- session.phtml -->

print "$session[count]";
<!-- end session.phtml -->


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-11 05:46 UTC] sas at cvs dot php dot net
This happens, because you simply jump out in the middle of a large process. That is not a problem though, the memory layer will take care of it.

The write handler shall return false upon a failed write attempt. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 08:01:32 2024 UTC