zf1s / zf1

Monorepo of a fork of Zend Framework 1, with all components split into individual composer packages. PHP 5.3-8.3 compatible.
BSD 3-Clause "New" or "Revised" License
57 stars 22 forks source link

[zend-session] Zend_Session_SaveHandler_DbTable - fix 'Failed to write session data using user defined save handler' warning on php 7+ #164

Closed fredericgboutin-yapla closed 1 year ago

fredericgboutin-yapla commented 1 year ago

Replaces my original PR #163

update returns 0 if the data being updated matches the one in the database, which produces a false return, which in turn triggers a warning in Zend_Session::writeClose - session_write_close()

Co-Authored-By: Pablo Guzman 26124783+Dringho@users.noreply.github.com

Original commit: https://github.com/Shardj/zf1-future/commit/9175301058d324bcdcdca0d091b2e6c394273a95

Original pull request: https://github.com/Shardj/zf1-future/pull/23

Originally submitted to zf1-future by @Dringho