[php-src] PR #21704: ext/session: fix cookie_lifetime overflow
| From: | jorgsowa | Date: | Fri, 10 Apr 2026 07:40:21 +0000 |
| Subject: | [php-src] PR #21704: ext/session: fix cookie_lifetime overflow | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35649@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21704
Author: jorgsowa
When
session.cookie_lifetime was set to a value larger than maxcookie,
OnUpdateCookieLifetime returned SUCCESS without updating the internal long value,
causing ini_get() string and PS(cookie_lifetime) to go out of sync.
Now the value is properly clamped to maxcookie with both the string and internal long updated
consistently, and a warning is emitted.