[GIT-PULLS] [php-src] PR #23059: Fix GH-23056: missing handler name in session write warning

[email protected] (lazerg)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23059
Author: lazerg

When the session data is unchanged, lazy write calls the update timestamp handler, and the warning names `ps_update_timestamp`. That zval stays undefined for handlers that do not provide an `updateTimestamp()` method, so the name came out empty. In that case `ps_update_timestamp_user()` calls the write handler instead, so the warning should name the write handler.

This only shows on master because an empty session now encodes to an empty string rather than NULL, which lets the lazy write branch run where it previously did not.

Fixes GH-23056.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.