Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed PHP 7 Catchable fatal error: session_regenerate_id(): Failed to create(read) session ID: user (path: ) #12206

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed session_regenerate_id(): Session object destruction failed.
  • Loading branch information
yitype committed Sep 7, 2016
commit 233fd11b3075fde3a247f1cac840ce88be5f4f61
2 changes: 1 addition & 1 deletion phalcon/session/adapter/libmemcached.zep
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Libmemcached extends Adapter
for key, _ in _SESSION {
unset _SESSION[key];
}
return this->_libmemcached->delete(id);
return this->_libmemcached->exists(id) ? this->_libmemcached->delete(id) : true;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion phalcon/session/adapter/memcache.zep
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Memcache extends Adapter
let id = sessionId;
}

return this->_memcache->delete(id);
return this->_memcache->exists(id) ? this->_memcache->delete(id) : true;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion phalcon/session/adapter/redis.zep
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Redis extends Adapter
let id = sessionId;
}

return this->_redis->delete(id);
return this->_redis->exists(id) ? this->_redis->delete(id) : true;
}

/**
Expand Down