PHP 4.0 Bug #4842: session errors with exit in write function

From: Date: Tue, 06 Jun 2000 18:04:57 +0000
Subject: PHP 4.0 Bug #4842: session errors with exit in write function
Groups: php.dev 
Request: Send a blank email to php-dev+get-20358@lists.php.net to get a copy of this message
From: abush@microcenter.com Operating system: RedHat 6.1 PHP version: 4.0.0 Release PHP Bug Type: Session related Bug description: session errors with exit in write function 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 example: <!-- include.inc --> ... Function sess_write($key, $val) { exit; } ... session_set_save_handler( "sess_open", "sess_close", "sess_read", "sess_write", "sess_destroy", "sess_gc"); session_name($SESSION_NAME); session_set_cookie_params($SESS_LIFE); <!-- end include.inc --> <!-- session.phtml --> require('include.inc'); session_start(); session_register(session); $session[count]++; print "$session[count]"; <!-- end session.phtml -->

« previous php.dev (#20358) next »