Skip to content

Commit

Permalink
Merge pull request Shardj#379 from fanlei/hotfix/return-type-not-matc…
Browse files Browse the repository at this point in the history
…h-deprecated

Fixed Shardj#357 return type backward-compatible issue reported at Shardj#377
  • Loading branch information
develart-projects authored Sep 13, 2023
2 parents fd95045 + 92574e5 commit d5f9151
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion library/Zend/Session/SaveHandler/Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,51 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://php.net/session_set_save_handler
*/
interface Zend_Session_SaveHandler_Interface extends SessionHandlerInterface
interface Zend_Session_SaveHandler_Interface
{

/**
* Open Session - retrieve resources
*
* @param string $save_path
* @param string $name
*/
public function open($save_path, $name);

/**
* Close Session - free resources
*
*/
public function close();

/**
* Read session data
*
* @param string $id
*/
public function read($id);

/**
* Write Session - commit data to resource
*
* @param string $id
* @param mixed $data
*/
public function write($id, $data);

/**
* Destroy Session - remove data from resource for
* given session id
*
* @param string $id
*/
public function destroy($id);

/**
* Garbage Collection - remove old session data older
* than $maxlifetime (in seconds)
*
* @param int $maxlifetime
*/
public function gc($maxlifetime);
}

0 comments on commit d5f9151

Please sign in to comment.