Skip to content

Commit

Permalink
Fixed Shardj#357 backward-compatible issue reported at Shardj#377
Browse files Browse the repository at this point in the history
  • Loading branch information
fanlei committed Sep 13, 2023
1 parent fd95045 commit cafa166
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/Zend/Session/SaveHandler/DbTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ public function getOverrideLifetime()
* @param string $name
* @return boolean
*/
#[\ReturnTypeWillChange]
public function open($save_path, $name)
{
$this->_sessionSavePath = $save_path;
Expand All @@ -303,6 +304,7 @@ public function open($save_path, $name)
*
* @return boolean
*/
#[\ReturnTypeWillChange]
public function close()
{
return true;
Expand All @@ -314,6 +316,7 @@ public function close()
* @param string $id
* @return string
*/
#[\ReturnTypeWillChange]
public function read($id)
{
$return = '';
Expand All @@ -338,6 +341,7 @@ public function read($id)
* @param string $data
* @return boolean
*/
#[\ReturnTypeWillChange]
public function write($id, $data)
{
$data = [$this->_modifiedColumn => time(),
Expand Down Expand Up @@ -366,6 +370,7 @@ public function write($id, $data)
* @param string $id
* @return boolean
*/
#[\ReturnTypeWillChange]
public function destroy($id)
{
$this->delete($this->_getPrimary($id, self::PRIMARY_TYPE_WHERECLAUSE));
Expand All @@ -378,6 +383,7 @@ public function destroy($id)
* @param int $maxlifetime
* @return true
*/
#[\ReturnTypeWillChange]
public function gc($maxlifetime)
{
$this->delete($this->getAdapter()->quoteIdentifier($this->_modifiedColumn, true) . ' + '
Expand Down

0 comments on commit cafa166

Please sign in to comment.